X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2FGitInfo.php;h=e9e780d53cb6ac943e5713e774fa1e1faf226e09;hb=0a08a3144b46d6f1217eb792bd7b464711c71a22;hp=6270b27fdd3382179217016f7b5aaa02de659aea;hpb=c1edd28ba660411ecc4207533d522926c82913fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GitInfo.php b/includes/GitInfo.php index 6270b27fdd..e9e780d53c 100644 --- a/includes/GitInfo.php +++ b/includes/GitInfo.php @@ -156,7 +156,7 @@ class GitInfo { * @return bool Whether or not the string looks like a SHA1 */ public static function isSHA1( $str ) { - return !!preg_match( '/^[0-9A-F]{40}$/i', $str ); + return (bool)preg_match( '/^[0-9A-F]{40}$/i', $str ); } /** @@ -227,6 +227,7 @@ class GitInfo { $date = false; if ( is_file( $wgGitBin ) && is_executable( $wgGitBin ) && + !Shell::isDisabled() && $this->getHead() !== false ) { $cmd = [