From: Alexandre Emsenhuber Date: Thu, 5 Apr 2012 18:59:50 +0000 (+0200) Subject: Fix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround... X-Git-Tag: 1.31.0-rc.0~24019 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=3f6312b1daebbdc8c4f121110b1618eaf69856dc;p=lhc%2Fweb%2Fwiklou.git Fix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround git revision hashes. Per Reedy, for consistency with the MediaWiki item at the top of the page and revision numbers in SVN; arround parentheses arround git hashes of extensions in Special:Version. Change-Id: I59573ffcdd9f245a12b85ba70182cef5ed3a277e --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index e377393747..777af416fa 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -428,7 +428,7 @@ class SpecialVersion extends SpecialPage { $gitInfo = new GitInfo( dirname( $extension['path'] ) ); $gitHeadSHA1 = $gitInfo->getHeadSHA1(); if ( $gitHeadSHA1 !== false ) { - $vcsText = substr( $gitHeadSHA1, 0, 7 ); + $vcsText = '(' . substr( $gitHeadSHA1, 0, 7 ) . ')'; $gitViewerUrl = $gitInfo->getHeadViewUrl(); if ( $gitViewerUrl !== false ) { $vcsText = "[$gitViewerUrl $vcsText]";