}
$title = Title :: makeTitle(NS_CATEGORY, $row->cl_to);
- // do not check userCanRead() -- page content is already accessible,
- // and category is listed there.
$vals = array();
- ApiQueryBase :: addTitleInfo($vals, $title, true);
+ ApiQueryBase :: addTitleInfo($vals, $title);
if ($fld_sortkey)
$vals['sortkey'] = $row->cl_sortkey;
$titles = array();
while ($row = $db->fetchObject($res)) {
- $title = Title :: makeTitle(NS_CATEGORY, $row->cl_to);
- if($title->userCanRead())
- $titles[] = $title;
+ $titles[] = Title :: makeTitle(NS_CATEGORY, $row->cl_to);
}
$resultPageSet->populateFromTitles($titles);
}