// Is there up-to-date ext-sql_patches?
if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) {
// Yes, has_menu shall be there
- $result = SQL_QUERY('SELECT
+ $result = sqlQuery('SELECT
`id`,
`module`,
`title`,
`module` ASC', __FILE__, __LINE__);
} else {
// Not recent enough ext-sql_patches ...
- $result = SQL_QUERY('SELECT
+ $result = sqlQuery('SELECT
`id`,
`module`,
`title`,
}
// ... and load all entries
- 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('mods');