Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -411,7 +411,7 @@ |
412 | 412 | |
413 | 413 | $sk = $wgUser->getSkin(); |
414 | 414 | |
415 | | - if ( $this->img ) { |
| 415 | + if ( $this->img->exists ) { |
416 | 416 | $list = new ImageHistoryList( $sk, $this->img ); |
417 | 417 | $file = $this->img; |
418 | 418 | $dims = $file->getDimensionsString(); |
Index: trunk/phase3/includes/filerepo/LocalRepo.php |
— | — | @@ -89,6 +89,10 @@ |
90 | 90 | if( !$wgFileRedirects ) { |
91 | 91 | return false; |
92 | 92 | } |
| 93 | + |
| 94 | + if( $title->getNamespace() == NS_MEDIA ) { |
| 95 | + $title = Title::makeTitle( NS_IMAGE, $title->getText() ); |
| 96 | + } |
93 | 97 | |
94 | 98 | $id = $this->getArticleID( $title ); |
95 | 99 | if( !$id ) { |