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:
Tim Starling 2008-05-06 11:59:58 +00:00
parent 3a821edcc6
commit 719a908243

View file

@ -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',