mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
more proper way determining $plugpath for generating admin_menu
This commit is contained in:
parent
078a655523
commit
f8cf73ac85
@ -518,7 +518,8 @@ class admin_shortcodes
|
||||
}
|
||||
}
|
||||
$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 (!$parm)
|
||||
|
Loading…
x
Reference in New Issue
Block a user