More complete rewrite to use wrapper function isExtensionInstalledAndNewer(), some...
[mailer.git] / inc / modules / admin / what-config_mods.php
index 20488564182465e58a60c31c4e252ca9392a8832..57c7327e0e5582beaa4b6fa6020457b9dca05b8a 100644 (file)
@@ -115,7 +115,7 @@ if (isPostRequestParameterSet('edit')) {
        runFilterChain('run_sqls');
 
        // Remove cache file if version matches
-       if (getExtensionVersion('cache') >= '0.1.2') {
+       if (isExtensionInstalledAndNewer('cache', '0.1.2')) {
                if ($GLOBALS['cache_instance']->loadCacheFile('modules')) $GLOBALS['cache_instance']->removeCacheFile();
        } // END - if