From: Russ Nelson Date: Wed, 4 May 2011 23:17:00 +0000 (+0000) Subject: Likely that nobody is calling getPath() on a ForeignAPI repo, but best to warn them... X-Git-Tag: 1.31.0-rc.0~30400 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=a74a0cafde20fed517b2beaad2d769f94434b3f7;p=lhc%2Fweb%2Fwiklou.git Likely that nobody is calling getPath() on a ForeignAPI repo, but best to warn them anyway. --- diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index c8b1cde9d9..5d51e4c589 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -229,6 +229,8 @@ abstract class File { * i.e. whether the files are all found in the same directory, * or in hashed paths like /images/3/3c. * + * Most callers don't check the return value, but ForeignAPIFile::getPath + * returns false. */ public function getPath() { if ( !isset( $this->path ) ) {