X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FImagePage.php;h=af778682c7323ac4bfe9f4591d5ac6f028faf1aa;hb=68c247e60f7b9e3e94e1e59e0fcbe7e5002fad82;hp=be5535a1f57dfeb66b581b4f0aa59febe4714004;hpb=00ac2882bbfa81c226250efc06586a5ab50bf3f8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index be5535a1f5..af778682c7 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