forked from extern/egroupware
corrected a problem with the order we include app header and app functions
This commit is contained in:
parent
53dfb62915
commit
680b766dbb
@ -417,7 +417,7 @@
|
|||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* Load the header unless the developer turns it off *
|
* Load the header unless the developer turns it off *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
if (!isset($phpgw_info["flags"]["noheader"]) || ! $phpgw_info["flags"]["noheader"]) {
|
if (! $phpgw_info["flags"]["noheader"]) {
|
||||||
$phpgw->common->phpgw_header();
|
$phpgw->common->phpgw_header();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -425,7 +425,7 @@
|
|||||||
* Load the app include files if the exists *
|
* Load the app include files if the exists *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
/* Then the include file */
|
/* Then the include file */
|
||||||
if (file_exists ($phpgw_info["server"]["app_inc"]."/functions.inc.php")){
|
if ($phpgw_info["flags"]["nonavbar"] && file_exists ($phpgw_info["server"]["app_inc"]."/functions.inc.php")){
|
||||||
include($phpgw_info["server"]["app_inc"]."/functions.inc.php");
|
include($phpgw_info["server"]["app_inc"]."/functions.inc.php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -574,6 +574,10 @@
|
|||||||
* Load the app include files if the exists *
|
* Load the app include files if the exists *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
/* Then the include file */
|
/* Then the include file */
|
||||||
|
if (! $phpgw_info["flags"]["nonavbar"] && file_exists ($phpgw_info["server"]["app_inc"]."/functions.inc.php")){
|
||||||
|
include($phpgw_info["server"]["app_inc"]."/functions.inc.php");
|
||||||
|
}
|
||||||
|
|
||||||
if (file_exists ($phpgw_info["server"]["app_inc"]."/header.inc.php")) {
|
if (file_exists ($phpgw_info["server"]["app_inc"]."/header.inc.php")) {
|
||||||
include($phpgw_info["server"]["app_inc"]."/header.inc.php");
|
include($phpgw_info["server"]["app_inc"]."/header.inc.php");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user