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:
dda5edf
)
moving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy.
author
Nicolas Dumazet
<nicdumz@users.mediawiki.org>
Sat, 5 Jul 2008 13:13:29 +0000
(13:13 +0000)
committer
Nicolas Dumazet
<nicdumz@users.mediawiki.org>
Sat, 5 Jul 2008 13:13:29 +0000
(13:13 +0000)
includes/Category.php
patch
|
blob
|
history
diff --git
a/includes/Category.php
b/includes/Category.php
index
45d2afa
..
acafc47
100644
(file)
--- a/
includes/Category.php
+++ b/
includes/Category.php
@@
-134,9
+134,9
@@
class Category {
* @return Category
*/
public static function newFromRow( $row, $title = null ) {
+ $cat = new self();
$cat->mTitle = $title;
- $cat = new self();
# NOTE: the row often results from a LEFT JOIN on categorylinks. This may result in
# all the cat_xxx fields being null, if the category page exists, but nothing