- $result_menu = SQL_QUERY_ESC("SELECT has_menu FROM "._MYSQL_PREFIX."_mod_reg WHERE module='%s' LIMIT 1",
- array($name), __FILE__, __LINE__);
- list($menu) = SQL_FETCHROW($result_menu);
- //* DEBUG: */ echo "*".$name."/".$menu."*<br>";
-
- // An empty menu entry will be interpreted as N (no menu) to avoid problems
- if (empty($menu)) $menu = "N";
-
- // Load extensions
- $file1 = sprintf(PATH."inc/extensions/ext-%s.php", $name);
- $file2 = $file1; $EXT_CSS = "N"; $EXT_ALWAYS_ACTIVE = "N";
+ $content['ext_menu'] = 'N';
+ if (MODULE_HAS_MENU($content['ext_name'], true)) {
+ $content['ext_menu'] = 'Y';
+ } // END - if