mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 02:24:07 +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
7f92292de6
commit
769130f449
|
@ -43,7 +43,8 @@ if( !defined( 'MEDIAWIKI' ) )
|
|||
|
||||
$wgExtensionCredits['parserhook']['SyntaxHighlight_GeSHi'] = array(
|
||||
'name' => 'SyntaxHighlight',
|
||||
'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( 'Brion Vibber', 'Tim Starling', 'Rob Church' ),
|
||||
'description' => 'Provides syntax highlighting using [http://qbnz.com/highlighter/ GeSHi Highlighter]',
|
||||
'descriptionmsg' => 'syntaxhighlight-desc',
|
||||
|
|
Loading…
Reference in a new issue