X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fpage%2FImagePage.php;h=db3ec1416eeb062aa03c6ec97755d7f7ffb58a5f;hb=652e555d26cc49bc98464a3c06116de3aa45140f;hp=be5535a1f57dfeb66b581b4f0aa59febe4714004;hpb=fc7d715b4b5adedd0ae3e9e6f969c89e19d460eb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index be5535a1f5..db3ec1416e 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -52,18 +52,6 @@ class ImagePage extends Article { return new WikiFilePage( $title ); } - /** - * Constructor from a page id - * @param int $id Article ID to load - * @return ImagePage|null - */ - public static function newFromID( $id ) { - $t = Title::newFromID( $id ); - # @todo FIXME: Doesn't inherit right - return $t == null ? null : new self( $t ); - # return $t == null ? null : new static( $t ); // PHP 5.3 - } - /** * @param File $file * @return void @@ -227,7 +215,6 @@ class ImagePage extends Article { 'filepage', // always show the local local Filepage.css, bug 29277 'mediawiki.action.view.filepage', // Add MediaWiki styles for a file page ] ); - } /**