From 164c79ba81bc4d738d18e3c78c2ece121d22a37b Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 8 Dec 2010 13:27:11 +0000 Subject: [PATCH] Added errors.inc inclusion in isession.inc --- CHANGELOG.txt | 4 ++++ install/isession.inc | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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(); -- 2.30.2