Likely that nobody is calling getPath() on a ForeignAPI repo, but best to warn them...
authorRuss Nelson <nelson@users.mediawiki.org>
Wed, 4 May 2011 23:17:00 +0000 (23:17 +0000)
committerRuss Nelson <nelson@users.mediawiki.org>
Wed, 4 May 2011 23:17:00 +0000 (23:17 +0000)
includes/filerepo/File.php

index c8b1cde..5d51e4c 100644 (file)
@@ -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 ) ) {