From e00cc4dbe53e2e1bf8f0a6d3557cab495253108c Mon Sep 17 00:00:00 2001 From: secretr Date: Fri, 4 May 2012 14:11:00 +0000 Subject: [PATCH] plugin shortcode fix --- e107_core/shortcodes/single/plugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/single/plugin.php b/e107_core/shortcodes/single/plugin.php index e53015b16..92e45daa3 100644 --- a/e107_core/shortcodes/single/plugin.php +++ b/e107_core/shortcodes/single/plugin.php @@ -5,7 +5,7 @@ function plugin_shortcode($parm = '') { $tp = e107::getParser(); - list($menu,$return) = explode('|',$parm.'|'); + @list($menu,$parms) = explode('|',$parm.'|'); $path = $tp -> toDB(dirname($menu)); $name = $tp -> toDB(basename($menu)); @@ -15,7 +15,7 @@ function plugin_shortcode($parm = '') $path = $menu; } /** - * @todo: $mode not defined + * fixed todo: $mode is provided by the menu itself, return is always true, added optional menu parameters */ - return e107::getMenu()->renderMenu($path,$name,$mode,$return); + return e107::getMenu()->renderMenu($path,$name,$parms,true); }