From 3dba34c62f5e10fd7a7026eed0242766b048d9bd Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 30 Jun 2015 10:34:38 -0700 Subject: [PATCH] Plugin: DB Table installation was failing on plugins with _menu in the folder name. --- e107_handlers/plugin_class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index ce187c118..ddc7e462f 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -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; }