}\r
\r
// Normalize titles\r
+ $titleObj = Title::makeTitle(NS_CATEGORY, $row->cl_to);\r
if(!is_null($resultPageSet))\r
- $titleObj = Title::newFromText('Category:' . $row->cl_to);\r
+ $pages[] = $titleObj->getPrefixedText();\r
else\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
'from' => null,\r
'prefix' => null,\r
'dir' => array(\r
- ApiBase :: PARAM_DFLT => 'AtoZ',\r
+ ApiBase :: PARAM_DFLT => 'ascending',\r
ApiBase :: PARAM_TYPE => array(\r
- 'AtoZ',\r
- 'ZtoA'\r
+ 'ascending',\r
+ 'descending'\r
),\r
),\r
'limit' => array (\r
ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2
),
'dir' => array (
- ApiBase :: PARAM_DFLT => 'AtoZ',
+ ApiBase :: PARAM_DFLT => 'ascending',
ApiBase :: PARAM_TYPE => array (
- 'AtoZ',
- 'ZtoA'
+ 'ascending',
+ 'descending'
)
)
);