]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load_cache-revision.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / loader / load_cache-revision.php
index fc4b883dd4e6979265dfb3aaf57ee23819770889..564429cc83e41db2898f666718068b35a596d63a 100644 (file)
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 // Next cached table is the revision...
-if (($GLOBALS['cache_instance']->loadCacheFile("revision", true))) {
+if (($GLOBALS['cache_instance']->loadCacheFile('revision', true))) {
        // Load revision from cache
        $GLOBALS['cache_array']['revision'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (($GLOBALS['output_mode'] != "1") && ($GLOBALS['output_mode'] != "-1")) {
+} elseif (($GLOBALS['output_mode'] != '1') && ($GLOBALS['output_mode'] != '-1')) {
        // Create cache file here
-       $GLOBALS['cache_instance']->init("REVISION");
+       $GLOBALS['cache_instance']->init('revision');
 
        // add the new RevInfos in and saves it to the cache
-       $GLOBALS['cache_instance']->addRow(getAkt_vers());
+       $GLOBALS['cache_instance']->addRow(getArrayFromActualVersion());
 
        // Close the cache
        $GLOBALS['cache_instance']->finalize();