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 a839ae2501
commit d847190318
Notes: Raimond Spekking 2009-03-28 22:26:10 +00:00

View file

@ -19,7 +19,8 @@ $wgExtensionCredits['specialpage'][] = array(
'name' => 'SpecialInterwiki',
'url' => 'http://mediawiki.org/wiki/Extension:SpecialInterwiki',
'description' => 'Adds a [[Special:Interwiki|special page]] to view and edit the interwiki table',
'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' => array( 'Stephanie Amanda Stevens', 'SPQRobin', 'others' ),
'descriptionmsg' => 'interwiki-desc',
);