From e552ca3dca88b22213aa0433c95cf0f84c720020 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 12 May 2012 17:02:53 +0200 Subject: [PATCH] ApiPageSet::populateFromTitles can work with Titles Change-Id: I492c350cbb487c1a35bc96c7bcf5f0af9a9d530c --- includes/api/ApiQueryAllCategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index b0f272b6b4..233ea75f86 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -112,7 +112,7 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { // Normalize titles $titleObj = Title::makeTitle( NS_CATEGORY, $row->cat_title ); if ( !is_null( $resultPageSet ) ) { - $pages[] = $titleObj->getPrefixedText(); + $pages[] = $titleObj; } else { $item = array(); $result->setContent( $item, $titleObj->getText() ); -- 2.20.1