From 3f6312b1daebbdc8c4f121110b1618eaf69856dc Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 5 Apr 2012 20:59:50 +0200 Subject: [PATCH] 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 --- includes/specials/SpecialVersion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]"; -- 2.20.1