Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / loader / load-refdepths.php
index 6aa4153e2c52a74c59780ae8948053e1f493bf46..446896fc790416fc5e1f6b712a25f983730a947b 100644 (file)
@@ -52,16 +52,16 @@ if (($GLOBALS['cache_instance']->loadCacheFile('refdepths')) && ($GLOBALS['cache
        $GLOBALS['cache_instance']->init();
 
        // Query for all referral depths
-       $result = SQL_QUERY('SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
+       $result = sqlQuery('SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__);
 
        // ... and load them
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Add row to cache file
                $GLOBALS['cache_instance']->addRow($content);
        } // END - while
 
        // Free memory
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 
        // Close the cache
        $GLOBALS['cache_instance']->storeExtensionVersion('sql_patches');