diff --git a/_install.php b/_install.php index b613f31..5cbc43c 100644 --- a/_install.php +++ b/_install.php @@ -17,8 +17,11 @@ if (!defined('DC_CONTEXT_ADMIN')) { try { $mod_id = basename(__DIR__); - $version = dcCore::app()->plugins->moduleInfo($mod_id, 'version'); - if (version_compare(dcCore::app()->getVersion($mod_id), $version, '>=')) { + if (version_compare( + dcCore::app()->getVersion($mod_id), + dcCore::app()->plugins->moduleInfo($mod_id, 'version'), + '>=' + )) { return null; } @@ -40,8 +43,6 @@ try { $si = new dbStruct(dcCore::app()->con, dcCore::app()->prefix); $changes = $si->synchronize($s); - dcCore::app()->setVersion($mod_id, $version); - return true; } catch (Exception $e) { dcCore::app()->error->add($e->getMessage());