use dotclear method to check version
This commit is contained in:
parent
3c83d92dcd
commit
11a6dd5189
1 changed files with 4 additions and 4 deletions
|
@ -15,14 +15,14 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$id = basename(__DIR__);
|
if (!dcCore::app()->newVersion(
|
||||||
|
basename(__DIR__),
|
||||||
if (version_compare(dcCore::app()->getVersion($id), dcCore::app()->plugins->moduleInfo($id, 'version'), '>=')) {
|
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
|
||||||
|
)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$translater = new dcTranslater(false);
|
$translater = new dcTranslater(false);
|
||||||
$translater->writeSettings(false);
|
$translater->writeSettings(false);
|
||||||
dcCore::app()->setVersion($id, dcCore::app()->plugins->moduleInfo($id, 'version'));
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
Loading…
Reference in a new issue