mirror of
https://github.com/e107inc/e107.git
synced 2025-07-27 01:40:22 +02:00
Plugin: DB Table installation was failing on plugins with _menu in the folder name.
This commit is contained in:
@@ -1653,10 +1653,11 @@ class e107plugin
|
|||||||
function XmlTables($function, $plug, $options = array())
|
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;
|
if(!file_exists($sqlFile)) // No File, so return;
|
||||||
{
|
{
|
||||||
|
e107::getMessage()->addDebug("No SQL File Found at: ".$sqlFile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user