1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 17:01:43 +02:00

Plugin: DB Table installation was failing on plugins with _menu in the folder name.

This commit is contained in:
Cameron
2015-06-30 10:34:38 -07:00
parent be54ccfae4
commit 3dba34c62f

View File

@@ -1653,10 +1653,11 @@ class e107plugin
function XmlTables($function, $plug, $options = array())
{
$sqlFile = e_PLUGIN.$plug['plugin_path'].'/'.$plug['plugin_path']."_sql.php";
$sqlFile = e_PLUGIN.$plug['plugin_path'].'/'.str_replace("_menu","", $plug['plugin_path'])."_sql.php";
if(!file_exists($sqlFile)) // No File, so return;
{
e107::getMessage()->addDebug("No SQL File Found at: ".$sqlFile);
return;
}