1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

Deprecate noTableRender from template files - send template name to tablerender() $mode instead for less confusion and consistent logic.

This commit is contained in:
Cameron
2013-04-14 17:08:38 -07:00
parent 3edc2035e6
commit c7bf05b06f
4 changed files with 16 additions and 22 deletions

View File

@@ -285,20 +285,20 @@ class e_menu
$text = $tp->parseTemplate($template['body'], true, $page_shortcodes);
// echo "TEMPLATE= ($mpath)".$page['menu_template'];
if($template['noTableRender'] !==true)
{
$ns->tablerender($caption, $text);
}
else
{
echo $text;
}
// if($template['noTableRender'] !==true) // XXX Deprecated - causes confusion while themeing.
// {
$ns->tablerender($caption, $text, 'cmenu-'.$page['menu_template']);
// }
// else
// {
// echo $text;
// }
}
else
{
$text = $tp->toHTML($page['menu_text'], true, 'parse_sc, constants');
$ns->tablerender($caption, $text);
$ns->tablerender($caption, $text, 'cmenu');
}
}