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

minor bugs, notice cleanup, missing e_SELF/e_QUERY fixes

This commit is contained in:
secretr
2011-12-06 09:44:28 +00:00
parent 270b278f43
commit ab4501edd2
10 changed files with 21 additions and 19 deletions

View File

@@ -19,8 +19,8 @@ if(false === $cached)
$template = e107::getTemplate('news', vartrue($parms['tmpl'], 'news_menu'), vartrue($parms['tmpl_key'], 'latest'));
$treeparm = array();
if($parms['count']) $treeparm['db_limit'] = '0, '.intval($parms['count']);
if($parms['order']) $treeparm['db_order'] = e107::getParser()->toDb($parms['order']);
if(vartrue($parms['count'])) $treeparm['db_limit'] = '0, '.intval($parms['count']);
if(vartrue($parms['order'])) $treeparm['db_order'] = e107::getParser()->toDb($parms['order']);
$parms['return'] = true;
$cached = $ntree->loadJoinActive(vartrue($parms['category'], 0), false, $treeparm)->render($template, $parms, true);