Home-page now calls the header function after all included applications have been loaded, so that common::egw_header can include all dependencies - stuff which has been echoed before the header function was called is output-buffered

This commit is contained in:
Andreas Stöckel 2011-06-02 14:52:12 +00:00
parent 4cb37be5d3
commit 91f133a049

View File

@ -32,7 +32,10 @@
include('../header.inc.php');
auth::check_password_age('home','index');
$GLOBALS['egw_info']['flags']['nonavbar']=false;
common::egw_header();
// Start output buffering
ob_start();
/*
** Initializing the template
*/
@ -294,6 +297,16 @@
}
//_debug_array($GLOBALS['egw_info']['user']['preferences']);
// Get everything which has been output by now
$contents = ob_get_contents();
ob_end_clean();
// Display the header which contains all includes etc.
common::egw_header();
// Display the fetched output
echo($contents);
//$GLOBALS['egw']->common->debug_phpgw_info();
//$GLOBALS['egw']->common->debug_list_core_functions();
$GLOBALS['egw']->common->egw_footer();