mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
more proper way determining $plugpath for generating admin_menu
This commit is contained in:
@@ -518,7 +518,8 @@ class admin_shortcodes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$plugindir = (str_replace('/','',str_replace('..', '', e_PLUGIN)).'/');
|
$plugindir = (str_replace('/','',str_replace('..', '', e_PLUGIN)).'/');
|
||||||
$plugpath = e_PLUGIN.str_replace(basename(e_SELF), '', str_replace($plugindir, '', strstr(e_SELF,$plugindir))).'admin_menu.php';
|
$plugpath = e_PLUGIN.str_replace(basename(e_SELF),'',str_replace('/'.$plugindir,'','/'.strstr(e_SELF,$plugindir))).'admin_menu.php';
|
||||||
|
|
||||||
if(file_exists($plugpath))
|
if(file_exists($plugpath))
|
||||||
{
|
{
|
||||||
if (!$parm)
|
if (!$parm)
|
||||||
|
Reference in New Issue
Block a user