mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-28 02:00:37 +00:00
Don't call preg_replace ~80 times per request. Leave the heavy lifting to Special:Version, using the new svn-revision member of $wgExtensionCredits.
This commit is contained in:
parent
3a821edcc6
commit
719a908243
|
@ -28,7 +28,8 @@ if (!defined('MEDIAWIKI')) {
|
|||
|
||||
$wgExtensionCredits['other'][] = array(
|
||||
'name' => 'PDF Handler',
|
||||
'version' => preg_replace('/^.* (\d\d\d\d-\d\d-\d\d) .*$/', '\1', '$LastChangedDate$'), #just the date of the last change
|
||||
'svn-date' => '$LastChangedDate$',
|
||||
'svn-revision' => '$LastChangedRevision$',
|
||||
'author' =>' Xarax',
|
||||
'description' => 'Handler for viewing PDF files in image mode',
|
||||
'descriptionmsg' => 'pdf-desc',
|
||||
|
|
Loading…
Reference in a new issue