Skip to content
Permalink
Browse files

optimized log auto-loading

  • Loading branch information...
following5 committed Aug 9, 2013
1 parent bd9ad3c commit af7450e2614d0ad3ea1d21cc236202c2f8d2e0f9
Showing with 8 additions and 1 deletion.
  1. +8 −1 htdocs/viewlogs.php
@@ -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();

0 comments on commit af7450e

Please sign in to comment.
You can’t perform that action at this time.