Workaround für Vereinsseitenentwurf

This commit is contained in:
following
2012-08-06 13:45:19 +02:00
parent 7a8be45e5a
commit bf7b0361e8

View File

@@ -17,7 +17,7 @@
{ {
$article = $_REQUEST['page']; $article = $_REQUEST['page'];
} }
if ($article == '') if ($article == '')
{ {
//no article specified //no article specified
@@ -70,7 +70,7 @@
if (!$tpl->is_cached()) if (!$tpl->is_cached())
{ {
$tpl->menuitem = sql_value("SELECT `id` FROM `sys_menu` WHERE `href`='&1' LIMIT 1", 0, 'articles.php?page=' . urlencode($article)); $tpl->menuitem = sql_value("SELECT `id` FROM `sys_menu` WHERE `href`='&1' LIMIT 1", 0, 'articles.php?page=' . urlencode($article));
if ($tpl->menuitem == 0) if ($tpl->menuitem == 0 && $article != 'verein') // workaround for 4_Vs
$tpl->redirect('index.php'); $tpl->redirect('index.php');
$tpl->assign('article', $article); $tpl->assign('article', $article);