Changed extension include to be outside function. Didn't work in submenus.
[fa-stable.git] / includes / main.inc
index b6791b8f771f841f28152885dc2b53aee8d18891..5d4371ba68d6c0efbfa1e2fdb52e7271db0f84be 100644 (file)
@@ -28,21 +28,10 @@ include_once($path_to_root . "/installed_extensions.php");
 function page($title, $no_menu=false, $is_index=false, $onload="", $js="", $script_only=false)
 {
 
-       global $path_to_root, $installed_extensions;
+       global $path_to_root;
 
        $hide_menu = $no_menu;
 
-       if ($no_menu==false && count($installed_extensions))
-       {
-               global $applications;
-               foreach ($installed_extensions as $ext)
-               {
-                       $s = $applications['system'];
-                       array_pop($applications);
-                       $applications[$ext['name']] = $ext['title'];;
-                       $applications['system'] = $s;
-               }       
-       }       
        include($path_to_root . "/includes/page/header.inc");
 
        page_header($title, $no_menu, $is_index, $onload, $js);