X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGitInfo.php;h=e9e780d53cb6ac943e5713e774fa1e1faf226e09;hb=ef752a33bbc796ec7c3d555e43c02f611af8c29a;hp=6270b27fdd3382179217016f7b5aaa02de659aea;hpb=89843b44ce94bcbb75b69f25c00c30f0ecc12752;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 = [