From 5660bf809594e46f63884182fc70f338412f9374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Wed, 6 Jul 2011 13:49:00 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20f=C3=BCr=20Redirects=20mit=20Submen?= =?UTF-8?q?=C3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cms/menu.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cms/menu.inc.php b/cms/menu.inc.php index 15522f8d0..1bd968330 100755 --- a/cms/menu.inc.php +++ b/cms/menu.inc.php @@ -83,7 +83,7 @@ function drawEntry($item) if($item['template']=='include') IncludeMenuAddon($item['content_id']); elseif($item['template']=='redirect') - Redirect($item['content_id'], $item['name']); + Redirect($item['content_id'], $item['name'], $item['content_id']); else DrawLink($item['link'], 'content', $item['name'], $item['content_id']); @@ -148,8 +148,9 @@ function DrawLink($link, $target, $name, $content_id=null) * * @param $content_id ContentID des Redirects * @param $name Anzeigename des Links + * @param $content_id_Submenu ID des Submenues das geoeffnet werden soll (optional) */ -function Redirect($content_id, $name) +function Redirect($content_id, $name, $content_id_Submenu=null) { global $sprache, $params; @@ -178,7 +179,7 @@ function Redirect($content_id, $name) else $target=''; - DrawLink($url, $target, $name); + DrawLink($url, $target, $name, $content_id_Submenu); } /**