From a74a0cafde20fed517b2beaad2d769f94434b3f7 Mon Sep 17 00:00:00 2001 From: Russ Nelson Date: Wed, 4 May 2011 23:17:00 +0000 Subject: [PATCH] Likely that nobody is calling getPath() on a ForeignAPI repo, but best to warn them anyway. --- includes/filerepo/File.php | 2 ++ 1 file changed, 2 insertions(+) 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 ) ) { -- 2.20.1