(bug 11744) Incorrect return value from Title::getParentCategories()
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 23 Oct 2007 14:19:48 +0000 (14:19 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 23 Oct 2007 14:19:48 +0000 (14:19 +0000)
RELEASE-NOTES
includes/Title.php

index 1a27246..5163510 100644 (file)
@@ -1,4 +1,4 @@
-= MediaWiki release notes =
+= MediaWiki release notes =
 
 Security reminder: MediaWiki does not require PHP's register_globals
 setting since version 1.2.0. If you have it on, turn it *off* if you can.
@@ -113,6 +113,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 11452) wfMsgExt uses sometimes wrong language object for parsing magic
   words when called with options ''parsemag'' or ''content''. 
 * (bug 11727) Support plural in 'historysize' message
+* (bug 11744) Incorrect return value from Title::getParentCategories()
 
 === API changes in 1.12 ===
 
index 5a62261..2e0f686 100644 (file)
@@ -2493,7 +2493,7 @@ class Title {
                                $data[$wgContLang->getNSText ( NS_CATEGORY ).':'.$x->cl_to] = $this->getFullText();
                        $dbr->freeResult ( $res ) ;
                } else {
-                       $data = '';
+                       $data = array();
                }
                return $data;
        }