mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-15 18:40:00 +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
a839ae2501
commit
d847190318
Notes:
Raimond Spekking
2009-03-28 22:26:10 +00:00
|
@ -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',
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue