* Replacing Title::newFromText() by Title::makeTitle(), which is more efficient
* Changing 'AtoZ' to 'ascending' throughout
}\r
\r
// Normalize titles\r
}\r
\r
// Normalize titles\r
+ $titleObj = Title::makeTitle(NS_CATEGORY, $row->cl_to);\r
if(!is_null($resultPageSet))\r
if(!is_null($resultPageSet))\r
- $titleObj = Title::newFromText('Category:' . $row->cl_to);\r
+ $pages[] = $titleObj->getPrefixedText();\r
- $titleObj = Title::newFromText($row->cl_to);\r
- $pages[] = $titleObj->getPrefixedText();\r
+ // Don't show "Category:" everywhere in non-generator mode\r
+ $pages[] = $titleObj->getText();\r
}\r
$db->freeResult($res);\r
\r
}\r
$db->freeResult($res);\r
\r
'from' => null,\r
'prefix' => null,\r
'dir' => array(\r
'from' => null,\r
'prefix' => null,\r
'dir' => array(\r
- ApiBase :: PARAM_DFLT => 'AtoZ',\r
+ ApiBase :: PARAM_DFLT => 'ascending',\r
ApiBase :: PARAM_TYPE => array(\r
ApiBase :: PARAM_TYPE => array(\r
+ 'ascending',\r
+ 'descending'\r
),\r
),\r
'limit' => array (\r
),\r
),\r
'limit' => array (\r
ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2
),
'dir' => array (
ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2
),
'dir' => array (
- ApiBase :: PARAM_DFLT => 'AtoZ',
+ ApiBase :: PARAM_DFLT => 'ascending',
ApiBase :: PARAM_TYPE => array (
ApiBase :: PARAM_TYPE => array (
+ 'ascending',
+ 'descending'