From 5836e1ccd53789d53890da54353306688f84c598 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 5 Nov 2009 08:55:18 +0000 Subject: [PATCH] Make newFromID() inherit correctly (ImagePage/CategoryPage...) by using Late Static Binding --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 105425a3e1..5065280788 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -60,7 +60,7 @@ class Article { */ public static function newFromID( $id ) { $t = Title::newFromID( $id ); - return $t == null ? null : new Article( $t ); + return $t == null ? null : new static( $t ); } /** -- 2.20.1