moving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy.
authorNicolas Dumazet <nicdumz@users.mediawiki.org>
Sat, 5 Jul 2008 13:13:29 +0000 (13:13 +0000)
committerNicolas Dumazet <nicdumz@users.mediawiki.org>
Sat, 5 Jul 2008 13:13:29 +0000 (13:13 +0000)
includes/Category.php

index 45d2afa..acafc47 100644 (file)
@@ -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