1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

plugin shortcode fix

This commit is contained in:
secretr
2012-05-04 14:11:00 +00:00
parent e0770ffa3b
commit e00cc4dbe5

View File

@@ -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);
}