1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +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

@@ -241,6 +241,9 @@ class e107Update
$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

@@ -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

@@ -1051,9 +1051,8 @@ 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;
}
}