1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

Allowing non _menu files to be included using the {PLUGIN} shortcode

This commit is contained in:
mcfly 2007-04-03 12:10:17 +00:00
parent a7bd42e3d1
commit 3767a5153a

View File

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