mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
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:
parent
4cb37be5d3
commit
91f133a049
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user