Skip to content
Permalink
Browse files

4607: main menu was lost in article pages when logged off

      and caching enabled
  • Loading branch information...
following
following committed Oct 28, 2012
1 parent b298bfc commit d51b908d9f497694508a7673af6e114180e707e3
Showing with 4 additions and 3 deletions.
  1. +4 −3 htdocs/articles.php
@@ -67,11 +67,12 @@
$tpl->cache_id = 'articles|' . $language . '|' . $article;
$tpl->cache_lifetime = 43200;
$tpl->menuitem = sql_value("SELECT `id` FROM `sys_menu` WHERE `href`='&1' LIMIT 1", 0, 'articles.php?page=' . urlencode($article));
if ($tpl->menuitem == 0)
$tpl->redirect('index.php');
if (!$tpl->is_cached())
{
$tpl->menuitem = sql_value("SELECT `id` FROM `sys_menu` WHERE `href`='&1' LIMIT 1", 0, 'articles.php?page=' . urlencode($article));
if ($tpl->menuitem == 0)
$tpl->redirect('index.php');
$tpl->assign('article', $article);
$tpl->assign('language', $language);

0 comments on commit d51b908

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