use dotclear method to check version
This commit is contained in:
parent
b5c6ff740a
commit
8c9533231e
@ -15,10 +15,9 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
}
|
||||
|
||||
try {
|
||||
if (version_compare(
|
||||
dcCore::app()->getVersion('dcAdvancedCleaner'),
|
||||
dcCore::app()->plugins->moduleInfo('dcAdvancedCleaner', 'version'),
|
||||
'>='
|
||||
if (!dcCore::app()->newVersion(
|
||||
basename(__DIR__),
|
||||
dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version')
|
||||
)) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user