Rosalieper has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/405725 )

Change subject: Version produces warning  when checking for $wgGitBin
......................................................................

Version produces warning  when checking for $wgGitBin

Added the '@' operator to the is_file() fuction to supress the warning.

Bug: T74445
Change-Id: Ib49a34a5288ed999fa7e5b3e08dab462d810892e
---
M includes/GitInfo.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/25/405725/1

diff --git a/includes/GitInfo.php b/includes/GitInfo.php
index fb75c25..e06f53a 100644
--- a/includes/GitInfo.php
+++ b/includes/GitInfo.php
@@ -225,7 +225,7 @@
 
                if ( !isset( $this->cache['headCommitDate'] ) ) {
                        $date = false;
-                       if ( is_file( $wgGitBin ) &&
+                       if ( @is_file( $wgGitBin ) &&
                                is_executable( $wgGitBin ) &&
                                $this->getHead() !== false
                        ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/405725
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib49a34a5288ed999fa7e5b3e08dab462d810892e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Rosalieper <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to