mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
plugin shortcode fix
This commit is contained in:
@@ -5,7 +5,7 @@ function plugin_shortcode($parm = '')
|
|||||||
{
|
{
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
list($menu,$return) = explode('|',$parm.'|');
|
@list($menu,$parms) = explode('|',$parm.'|');
|
||||||
|
|
||||||
$path = $tp -> toDB(dirname($menu));
|
$path = $tp -> toDB(dirname($menu));
|
||||||
$name = $tp -> toDB(basename($menu));
|
$name = $tp -> toDB(basename($menu));
|
||||||
@@ -15,7 +15,7 @@ function plugin_shortcode($parm = '')
|
|||||||
$path = $menu;
|
$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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user