Fix for If5f1c26f (
69591db):
This breaks maintenance/language/transstat.php when there's no db connection.
Change-Id: I3f4416234ecce34c93ba14a66771379cb427e83b
$svnInfo = self::getSvnInfo( $IP );
if ( !$svnInfo && !$gitInfo ) {
$version = $wgVersion;
$svnInfo = self::getSvnInfo( $IP );
if ( !$svnInfo && !$gitInfo ) {
$version = $wgVersion;
+ } elseif ( $gitInfo && $flags === 'nodb' ) {
+ $shortSha1 = substr( $gitInfo, 0, 7 );
+ $version = "$wgVersion ($shortSha1)";
} elseif ( $gitInfo ) {
$shortSha1 = substr( $gitInfo, 0, 7 );
$shortSha1 = wfMessage( 'parentheses' )->params( $shortSha1 )->escaped();
} elseif ( $gitInfo ) {
$shortSha1 = substr( $gitInfo, 0, 7 );
$shortSha1 = wfMessage( 'parentheses' )->params( $shortSha1 )->escaped();