mirror of
https://github.com/e107inc/e107.git
synced 2025-06-06 19:06:39 +02:00
Fixes Plugin Database structure update detection.
This commit is contained in:
parent
40558eeedb
commit
caee889b7f
@ -235,12 +235,15 @@ class e107Update
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
$text = "";
|
$text = "";
|
||||||
|
|
||||||
|
uksort($list, "strnatcasecmp");
|
||||||
|
|
||||||
foreach($list as $path=>$val)
|
foreach($list as $path=>$val)
|
||||||
{
|
{
|
||||||
$name = !empty($val['@attributes']['lan']) ? $tp->toHtml($val['@attributes']['lan'],false,'TITLE') : $val['@attributes']['name'];
|
$name = !empty($val['@attributes']['lan']) ? $tp->toHtml($val['@attributes']['lan'],false,'TITLE') : $val['@attributes']['name'];
|
||||||
|
@ -1588,7 +1588,7 @@ class e_admin_dispatcher
|
|||||||
{
|
{
|
||||||
$icon = e107::getPlugin()->getIcon(e_CURRENT_PLUGIN, 32, '');
|
$icon = e107::getPlugin()->getIcon(e_CURRENT_PLUGIN, 32, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
return e107::getNav()->admin($icon."<span>".$this->menuTitle."</span>", $selected, $var);
|
return e107::getNav()->admin($icon."<span>".$this->menuTitle."</span>", $selected, $var);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,6 @@ class db_verify
|
|||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$sql->gen('SET SQL_QUOTE_SHOW_CREATE = 1');
|
$sql->gen('SET SQL_QUOTE_SHOW_CREATE = 1');
|
||||||
|
|
||||||
@ -74,8 +73,6 @@ class db_verify
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$this->sqlLanguageTables = $this->getSqlLanguages();
|
$this->sqlLanguageTables = $this->getSqlLanguages();
|
||||||
|
|
||||||
// $this->loadCreateTableData();
|
// $this->loadCreateTableData();
|
||||||
@ -84,6 +81,13 @@ class db_verify
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function clearCache()
|
||||||
|
{
|
||||||
|
|
||||||
|
return e107::getCache()->clear(self::cachetag, true);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private function load()
|
private function load()
|
||||||
{
|
{
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
@ -232,6 +236,7 @@ class db_verify
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1050,10 +1050,9 @@ class e107plugin
|
|||||||
{
|
{
|
||||||
return FALSE;
|
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();
|
$plg = e107::getPlug();
|
||||||
|
|
||||||
@ -1075,6 +1074,7 @@ class e107plugin
|
|||||||
|
|
||||||
if($dbv->errors())
|
if($dbv->errors())
|
||||||
{
|
{
|
||||||
|
$mes->addDebug("Plugin Update(s) Required - db structure change [".$path."]");
|
||||||
$needed[$path] = $data;
|
$needed[$path] = $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1119,7 +1119,7 @@ class e107plugin
|
|||||||
{
|
{
|
||||||
$log->addDebug("Plugin: <strong>{$path}</strong> requires an update.");
|
$log->addDebug("Plugin: <strong>{$path}</strong> requires an update.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return count($needed) ? $needed : FALSE;
|
return count($needed) ? $needed : FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user