Include file order /error binding fixed once again.
[fa-stable.git] / includes / main.inc
index 2180ec05793a0b3d0ab91823227eae9f36cea835..a4472e8ecc40f806d0c5cb1797af0c8278892a92 100644 (file)
     include_once($path_to_root . "/admin/db/users_db.inc");
     include_once($path_to_root . "/includes/ui/ui_view.inc");
        
-       function output_html($text) 
-       {
-         global $before_box;
-         return  in_ajax() ? fmt_errors() : ($before_box.fmt_errors().$text);
-       }
-
     function page($title, $no_menu=false, $is_index=false, $onload="", $js="")
     {
 
 
        $hide_menu = $no_menu;
 
-               // intercept all output to destroy it in case of ajax call
-               ob_start('output_html');
-               // colect all error msgs
-               set_error_handler('error_handler' /*, errtypes */);
-
        include($path_to_root . "/includes/page/header.inc");
 
        page_header($title, $no_menu, $is_index, $onload, $js);
@@ -46,7 +35,7 @@
 
        include($path_to_root . "/includes/page/footer.inc");
 
-               $Ajax->run();
+       $Ajax->run();
        page_footer($no_menu, $is_index);
     }