Fix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround...
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 5 Apr 2012 18:59:50 +0000 (20:59 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 5 Apr 2012 19:03:11 +0000 (21:03 +0200)
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

includes/specials/SpecialVersion.php

index e377393..777af41 100644 (file)
@@ -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]";