Index: trunk/phase3/includes/WikiFilePage.php |
— | — | @@ -40,12 +40,9 @@ |
41 | 41 | } |
42 | 42 | $this->mFileLoaded = true; |
43 | 43 | |
44 | | - $this->mFile = false; |
| 44 | + $this->mFile = wfFindFile( $this->mTitle ); |
45 | 45 | if ( !$this->mFile ) { |
46 | | - $this->mFile = wfFindFile( $this->mTitle ); |
47 | | - if ( !$this->mFile ) { |
48 | | - $this->mFile = wfLocalFile( $this->mTitle ); // always a File |
49 | | - } |
| 46 | + $this->mFile = wfLocalFile( $this->mTitle ); // always a File |
50 | 47 | } |
51 | 48 | $this->mRepo = $this->mFile->getRepo(); |
52 | 49 | return true; |