From: Alexandre Emsenhuber Date: Wed, 15 Feb 2012 13:34:08 +0000 (+0000) Subject: Settings $this->mFile to false and checking for !$this->mFile the line after is rathe... X-Git-Tag: 1.31.0-rc.0~24706 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=e0daaa9098378dede63f34e105aa5f23e38c3427;p=lhc%2Fweb%2Fwiklou.git Settings $this->mFile to false and checking for !$this->mFile the line after is rather... useless --- diff --git a/includes/WikiFilePage.php b/includes/WikiFilePage.php index 4e227f68c6..52d8e6d87b 100644 --- a/includes/WikiFilePage.php +++ b/includes/WikiFilePage.php @@ -40,12 +40,9 @@ class WikiFilePage extends WikiPage { } $this->mFileLoaded = true; - $this->mFile = false; + $this->mFile = wfFindFile( $this->mTitle ); if ( !$this->mFile ) { - $this->mFile = wfFindFile( $this->mTitle ); - if ( !$this->mFile ) { - $this->mFile = wfLocalFile( $this->mTitle ); // always a File - } + $this->mFile = wfLocalFile( $this->mTitle ); // always a File } $this->mRepo = $this->mFile->getRepo(); return true;