From 27c3caf17e7ff9a7a6cb31c670bae39ce3495ab4 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Fri, 4 Dec 2009 08:07:03 +0000 Subject: [PATCH] Enable assertion handler for all pages. Enable the assertion handler for all pages which load www/_include.php. This may lead to more logging of assertion failures, but should otherwise be invisible. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2028 44740490-163a-0410-bde0-09ae8108e29a --- www/_include.php | 3 +++ www/module.php | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/_include.php b/www/_include.php index 2f67ef974..53afd4e28 100644 --- a/www/_include.php +++ b/www/_include.php @@ -22,6 +22,9 @@ if(get_magic_quotes_gpc()) { /* Initialize the autoloader. */ require_once(dirname(dirname(__FILE__)) . '/lib/_autoload.php'); +/* Enable assertion handler for all pages. */ +SimpleSAML_Error_Assertion::installHandler(); + /* Show error page on unhandled exceptions. */ function SimpleSAML_exception_handler(Exception $exception) { $e = new SimpleSAML_Error_Error('UNHANDLEDEXCEPTION', $exception); diff --git a/www/module.php b/www/module.php index 38aa8f377..649b95c82 100644 --- a/www/module.php +++ b/www/module.php @@ -12,8 +12,6 @@ require_once('_include.php'); -SimpleSAML_Error_Assertion::installHandler(); - /* Index pages - filenames to attempt when accessing directories. */ $indexFiles = array('index.php', 'index.html', 'index.htm', 'index.txt'); -- GitLab