X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FFile.php;h=950baea11baf0feecf15bf2bf98ad5f383fa5888;hb=f077c4b1d6fd38de065353eccaa60b6b25c3e302;hp=dc35016d1f319173613c73be2d8d67f704a3740a;hpb=47bf7b2423b7c3e856f21d50cb762a201fc695af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index dc35016d1f..950baea11b 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -97,10 +97,10 @@ abstract class File { /** @var Title|string|bool */ protected $title; - /** @var string Text of last error */ + /** @var string Text of last error */ protected $lastError; - /** @var string Main part of the title, with underscores (Title::getDBkey) */ + /** @var string Main part of the title, with underscores (Title::getDBkey) */ protected $redirected; /** @var Title */ @@ -583,6 +583,10 @@ abstract class File { public function getCommonMetaArray() { $handler = $this->getHandler(); + if ( !$handler ) { + return false; + } + return $handler->getCommonMetaArray( $this ); } @@ -1325,7 +1329,7 @@ abstract class File { $this->assertRepoDefined(); return $this->repo->getZonePath( 'thumb' ) . '/' . - $this->getArchiveThumbRel( $archiveName, $suffix ); + $this->getArchiveThumbRel( $archiveName, $suffix ); } /**