From: Janusz Dobrowolski Date: Thu, 25 Apr 2013 20:39:52 +0000 (+0200) Subject: Ignore hook system in installer. X-Git-Tag: 2.3-final~274 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=bd9a2064a4e308b2f056826a152e15f7795a2f20;p=fa-stable.git Ignore hook system in installer. --- diff --git a/includes/page/header.inc b/includes/page/header.inc index 410da2c0..0ae62638 100644 --- a/includes/page/header.inc +++ b/includes/page/header.inc @@ -72,7 +72,7 @@ function send_scripts() function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="", $css='') { // titles and screen header - global $path_to_root, $def_app, $use_popup_windows, $help_base_url; + global $path_to_root, $def_app, $use_popup_windows, $help_base_url, $db_connections; if (in_ajax()) return; // just for speed up @@ -115,7 +115,8 @@ function page_header($title, $no_menu=false, $is_index=false, $onload="", $js="" isset($_SESSION["App"]->applications[$sel_app]) ? $sel_app : 'orders'; $page_header_args = func_get_args(); - hook_invoke_all('pre_header', $page_header_args); + if(isset($db_connections)) // skip before installation + hook_invoke_all('pre_header', $page_header_args); $encoding = $_SESSION['language']->encoding;