// Add more if sql_patches is recent enougth
$add = '';
if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
- $add = ', `ext_has_css` AS `ext_css`';
- } // END - if
+ $add = ',`ext_has_css` AS `ext_css`';
+ } // END - if
- // Load all modules and their data
+ // Query for all extensions
$result = SQL_QUERY('SELECT `id` AS `ext_id`,`ext_name`,`ext_active`,`ext_version`' . $add . ' FROM `{?_MYSQL_PREFIX?}_extensions` ORDER BY `ext_name` ASC', __FILE__, __LINE__);
+
+ // Load all entries
while ($content = SQL_FETCHARRAY($result)) {
// Load extension
loadExtension($content['ext_name'], 'test');