optimized log auto-loading

This commit is contained in:
following
2013-08-09 16:33:38 +02:00
parent bd9ad3c705
commit af7450e261

View File

@@ -9,9 +9,16 @@
require('./lib2/web.inc.php');
require_once('./lib2/logic/cache.class.php');
$tpl->name = 'viewlogs';
$tpl->menuitem = MNU_CACHES_VIEWLOGS;
// 'tagloadlogs' produces a stripped-down version of the loglist for
// log autoloading (see viewcache.php). The actual log block to be inserted
// is tagged with <ocloadlogs>...</ocloadlogs>.
$tagloadlogs = (@$_REQUEST['tagloadlogs'] == 1);
$tpl->popup = $tagloadlogs;
$login->verify();
$cache_id = 0;
@@ -74,7 +81,7 @@
$tpl->assign('cache', $rCache);
$tpl->assign('logs', cache::getLogsArray($cache_id, $start, $count, $deleted));
$tpl->assign('tagloadlogs', @$_REQUEST['tagloadlogs'] == 1);
$tpl->assign('tagloadlogs', $tagloadlogs);
$tpl->display();