1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 12:11:55 +02:00

Fixes Plugin Database structure update detection.

This commit is contained in:
Cameron 2017-04-21 14:21:29 -07:00
parent 40558eeedb
commit caee889b7f
4 changed files with 18 additions and 10 deletions

View File

@ -235,12 +235,15 @@ class e107Update
{
return false;
}
$frm = e107::getForm();
$tp = e107::getParser();
$text = "";
uksort($list, "strnatcasecmp");
foreach($list as $path=>$val)
{
$name = !empty($val['@attributes']['lan']) ? $tp->toHtml($val['@attributes']['lan'],false,'TITLE') : $val['@attributes']['name'];

View File

@ -1588,7 +1588,7 @@ class e_admin_dispatcher
{
$icon = e107::getPlugin()->getIcon(e_CURRENT_PLUGIN, 32, '');
}
return e107::getNav()->admin($icon."<span>".$this->menuTitle."</span>", $selected, $var);
}

View File

@ -55,7 +55,6 @@ class db_verify
function __construct()
{
$sql = e107::getDb();
$sql->gen('SET SQL_QUOTE_SHOW_CREATE = 1');
@ -74,8 +73,6 @@ class db_verify
}
$this->sqlLanguageTables = $this->getSqlLanguages();
// $this->loadCreateTableData();
@ -84,6 +81,13 @@ class db_verify
}
public function clearCache()
{
return e107::getCache()->clear(self::cachetag, true);
}
private function load()
{
$mes = e107::getMessage();
@ -232,6 +236,7 @@ class db_verify
}
}
}
}

View File

@ -1050,10 +1050,9 @@ class e107plugin
{
return FALSE;
}
// require_once(e_HANDLER."db_verify_class.php");
$dbv = e107::getSingleton('db_verify', e_HANDLER."db_verify_class.php");
$dbv = e107::getObject('db_verify', "{e_HANDLER}db_verify_class.php");
$plg = e107::getPlug();
@ -1075,6 +1074,7 @@ class e107plugin
if($dbv->errors())
{
$mes->addDebug("Plugin Update(s) Required - db structure change [".$path."]");
$needed[$path] = $data;
}
}
@ -1119,7 +1119,7 @@ class e107plugin
{
$log->addDebug("Plugin: <strong>{$path}</strong> requires an update.");
}
return count($needed) ? $needed : FALSE;
}