From: Bryan Tong Minh Date: Sat, 5 Apr 2008 18:34:10 +0000 (+0000) Subject: (bug 11633) Explicitly convert redirect titles to strings due to PHP's very weak... X-Git-Tag: 1.31.0-rc.0~48603 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=9c03862fbd5f74a59accf7fe02f258db05b16775;p=lhc%2Fweb%2Fwiklou.git (bug 11633) Explicitly convert redirect titles to strings due to PHP's very weak typing on array keys. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ff2ea0782d..35e1334746 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -191,6 +191,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Cleaned up redirect resolution * Added possibility to obtain all external links through list=exturlusage * (bug 13606) Added archivename to iiprop +* (bug 11633) Explicitly convert redirect titles to strings due to PHP's + very weak typing on array keys. === Languages updated in 1.13 === diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 7cb4e830c7..f72eb6d9ea 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -275,7 +275,7 @@ class ApiQuery extends ApiBase { $redirValues = array (); foreach ($pageSet->getRedirectTitles() as $titleStrFrom => $titleStrTo) { $redirValues[] = array ( - 'from' => $titleStrFrom, + 'from' => strval($titleStrFrom), 'to' => $titleStrTo ); }