]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load-earning.php
Extension ext-earning introduced (unfinished), renamings:
[mailer.git] / inc / loader / load-earning.php
index 74ae2c1a4f3f1e90b4d1d473df7a4bed81a10635..5dc576e2068dc5c98606d685134def15dcb8bc4e 100644 (file)
@@ -44,10 +44,10 @@ if (!defined('__SECURITY')) {
 }
 
 // Let's start with the admins table...
-if (($GLOBALS['cache_instance']->loadCacheFile('earning')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
+if (($GLOBALS['cache_instance']->loadCacheFile('earning')) && ($GLOBALS['cache_instance']->extensionVersionMatches('earning'))) {
        // Load cache
        $GLOBALS['cache_array']['earning'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif ((isHtmlOutputMode()) && (isExtensionInstalledAndNewer('sql_patches', '0.8.5'))) {
+} elseif (isHtmlOutputMode()) {
        // Create cache file
        $GLOBALS['cache_instance']->init();
 
@@ -62,7 +62,7 @@ if (($GLOBALS['cache_instance']->loadCacheFile('earning')) && ($GLOBALS['cache_i
        SQL_FREERESULT($result);
 
        // Close cache
-       $GLOBALS['cache_instance']->storeExtensionVersion('sql_patches');
+       $GLOBALS['cache_instance']->storeExtensionVersion('earning');
        $GLOBALS['cache_instance']->finalize();
 }