dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6f68c3
)
Make newFromID() inherit correctly (ImagePage/CategoryPage...) by using Late Static...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 5 Nov 2009 08:55:18 +0000
(08:55 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 5 Nov 2009 08:55:18 +0000
(08:55 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
105425a
..
5065280
100644
(file)
--- 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 );
}
/**