X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FLocalFile.php;h=e849c8e2db42fae7b6d22fef748af0d8f3998a69;hb=22c6ef5ebbacdb2ed17d323944e34c00fc9cd331;hp=67768c4304a1dc6a30acb4fa53403529c9e8a0a2;hpb=9e762fd04b4efbf36d831947198007ab7266bbef;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 67768c4304..e849c8e2db 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -633,7 +633,7 @@ class LocalFile extends File { /** * Fix thumbnail files from 1.4 or before, with extreme prejudice - * @TODO: do we still care about this? Perhaps a maintenance script + * @todo : do we still care about this? Perhaps a maintenance script * can be made instead. Enabling this code results in a serious * RTT regression for wikis without 404 handling. */ @@ -1043,7 +1043,7 @@ class LocalFile extends File { if ( !$props ) { wfProfileIn( __METHOD__ . '-getProps' ); $props = $this->repo->getFileProps( $this->getVirtualUrl() ); - wfProfileOut( __METHOD__ . -'getProps' ); + wfProfileOut( __METHOD__ . '-getProps' ); } if ( $timestamp === false ) { @@ -1456,7 +1456,7 @@ class LocalFile extends File { */ function getDescriptionText() { global $wgParser; - $revision = Revision::newFromTitle( $this->title, false, Revision::AVOID_MASTER ); + $revision = Revision::newFromTitle( $this->title, false, Revision::READ_NORMAL ); if ( !$revision ) return false; $text = $revision->getText(); if ( !$text ) return false;