From: Roan Kattouw Date: Tue, 23 Oct 2007 14:19:48 +0000 (+0000) Subject: (bug 11744) Incorrect return value from Title::getParentCategories() X-Git-Tag: 1.31.0-rc.0~51094 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/voir.php?a=commitdiff_plain;h=16ac5ce574ef1f641ebdab0e47b1359ad00fb0b0;p=lhc%2Fweb%2Fwiklou.git (bug 11744) Incorrect return value from Title::getParentCategories() --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1a272464b7..5163510a2d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Title.php b/includes/Title.php index 5a6226131f..2e0f686693 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; }