@@ -61,7+61,9 @@ if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache
// Loop through all
foreach ($EXT_DUMMY['ext_name'] as $k => $ext_name) {
// Load CSS file
// Loop through all
foreach ($EXT_DUMMY['ext_name'] as $k => $ext_name) {
// Load CSS file
- if ($EXT_DUMMY['ext_css'][$k] == 'Y') addExtensionCssFile($ext_name . '.css');
+ if ($EXT_DUMMY['ext_css'][$k] == 'Y') {
+ addExtensionCssFile($ext_name . '.css');
+ } // END - if
// Load extension file itself
if (($EXT_DUMMY['ext_active'][$k] == 'Y') || ($EXT_DUMMY['ext_keep'][$k] == 'Y')) {
// Load extension file itself
if (($EXT_DUMMY['ext_active'][$k] == 'Y') || ($EXT_DUMMY['ext_keep'][$k] == 'Y')) {
@@ -136,34+138,24 @@ if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache
// Add more if sql_patches is recent enougth
$add = '';
// Add more if sql_patches is recent enougth
$add = '';
- if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) $add = ", `ext_has_css` AS ext_css";
+ if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
+ $add = ', `ext_has_css` AS `ext_css`';
+ } // END - if
// Load all modules and their data
// Load all modules and their data
- $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__);
+ $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__);
while ($content = SQL_FETCHARRAY($result)) {
// Load extension
loadExtension($content['ext_name'], 'test');
// Get menu entry
while ($content = SQL_FETCHARRAY($result)) {
// Load extension
loadExtension($content['ext_name'], 'test');
// Get menu entry
- $content['ext_menu'] = 'N';
- if (ifModuleHasMenu($content['ext_name'], true)) {