mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Allowing non _menu files to be included using the {PLUGIN} shortcode
This commit is contained in:
@@ -53,4 +53,14 @@ if($sql->db_Select('menus','menu_id, menu_pages',"menu_name = '$name' AND (menu_
|
|||||||
include_once(e_PLUGIN.$path."/".$name.".php");
|
include_once(e_PLUGIN.$path."/".$name.".php");
|
||||||
$sql->db_Mark_Time("(After $name)");
|
$sql->db_Mark_Time("(After $name)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(is_readable(e_PLUGIN.$path."/".$name.".php"))
|
||||||
|
{
|
||||||
|
$sql->db_Mark_Time($name);
|
||||||
|
include_lan(e_PLUGIN.$path."/languages/".e_LANGUAGE.".php");
|
||||||
|
include_once(e_PLUGIN.$path."/".$name.".php");
|
||||||
|
$sql->db_Mark_Time("(After $name)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user