From: Janusz Dobrowolski Date: Wed, 8 Dec 2010 13:27:11 +0000 (+0000) Subject: Added errors.inc inclusion in isession.inc X-Git-Tag: v2.4.2~19^2~421 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=164c79ba81bc4d738d18e3c78c2ece121d22a37b;hp=a8334c9858a3124d905ff67ff1865274051883a6;p=fa-stable.git Added errors.inc inclusion in isession.inc --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index abe22c68..c392b0a3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +08-Dec-2010 Janusz Dobrowolski +# Added errors.inc inclusion +$ /install/isession.inc + 07-Dec-2010 Janusz Dobrowolski # Missing tags argument in display_type call $ /reporting/rep705.php diff --git a/install/isession.inc b/install/isession.inc index 7492838f..314da9d8 100644 --- a/install/isession.inc +++ b/install/isession.inc @@ -52,6 +52,10 @@ if (!isset($path_to_root)) if (isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) die("Restricted access"); +include_once($path_to_root . "/includes/errors.inc"); +// collect all error msgs +set_error_handler('error_handler' /*, errtypes */); + include_once($path_to_root . "/includes/current_user.inc"); include_once($path_to_root . "/includes/lang/language.php"); include_once($path_to_root . "/includes/ajax.inc"); @@ -118,9 +122,6 @@ $Pagehelp = array(); register_shutdown_function('end_flush'); ob_start('output_html',0); -// colect all error msgs -set_error_handler('error_handler' /*, errtypes */); - if (!isset($_SESSION["wa_current_user"])) $_SESSION["wa_current_user"] = new current_user();