* AdminActions::parse_commentnavlist()
* Parse skinvar commentnavlist
*
- * @param void
+ * @param string $template_name name of template to use
* @return void
*/
- public function parse_commentnavlist()
+ public function parse_commentnavlist($template_name = '')
{
global $CONF, $manager, $member;
$template['content'] = 'commentlist';
- $this->parser->parse(listplug_navlist('comment', $resource, 'table', $template));
+ $navlist = listplug_navlist('comment', $resource, 'table', $template, $template_name);
+ $this->parser->parse($navlist);
}
else
{
* AdminActions::parse_itemnavlist()
* Parse skinvar itemnavlist
*
- * @param void
+ * @param string $template_name name of template to use
* @return void
*/
- public function parse_itemnavlist($template_name)
+ public function parse_itemnavlist($template_name = '')
{
global $CONF, $manager, $member;
$template['content'] = 'itemlist';
- $this->parser->parse(listplug_navlist('item', $query, 'table', $template, $template_name));
+ $navlist = listplug_navlist('item', $query, 'table', $template, $template_name);
+ $this->parser->parse($navlist);
}
else
{
$template['shortenel'] = '';
$template['javascript'] = 'onchange="return form.submit()"';
- $this->parser->parse(showlist($query, 'select', $template, $template_name));
+ $selectlist = showlist($query, 'select', $template, $template_name);
+ $this->parser->parse($selectlist);
return;
}
$template['content'] = 'bloglist';
$template['superadmin'] = $member->isAdmin();
- $this->parser->parse(showlist($resource, 'table', $template, $template_name));
+ $list_resource_table = showlist($resource, 'table', $template, $template_name);
+ $this->parser->parse($list_resource_table);
$resource->closeCursor();
echo '<h2>' . _OVERVIEW_YRDRAFTS . '</h2>';