X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FOldLocalFile.php;h=06fef4f6f08dcb7cf685900c86fbddd4c8e1f8c5;hb=34fe90ac52644c3a543ca8adf89900c0fb2de70b;hp=31e62ecbe98bbab1304eb5a143a256973b3848e2;hpb=7f91193ef37d534949950c980416b5a921cd5d79;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/OldLocalFile.php b/includes/filerepo/file/OldLocalFile.php index 31e62ecbe9..06fef4f6f0 100644 --- a/includes/filerepo/file/OldLocalFile.php +++ b/includes/filerepo/file/OldLocalFile.php @@ -194,14 +194,12 @@ class OldLocalFile extends LocalFile { } else { $this->fileExists = false; } - } /** * Load lazy file metadata from the DB */ protected function loadExtraFromDB() { - $this->extraDataLoaded = true; $dbr = $this->repo->getSlaveDB(); $conds = [ 'oi_name' => $this->getName() ]; @@ -227,7 +225,6 @@ class OldLocalFile extends LocalFile { } else { throw new MWException( "Could not find data for image '{$this->archive_name}'." ); } - } /** @@ -332,7 +329,7 @@ class OldLocalFile extends LocalFile { * @param string $timestamp * @param string $comment * @param User $user - * @return FileRepoStatus + * @return Status */ function uploadOld( $srcPath, $archiveName, $timestamp, $comment, $user ) { $this->lock();