From 8d42e09a3cece9439e3ea13e5cbcc434cfaedaeb Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 10 Feb 2004 04:57:56 +0000 Subject: [PATCH] New hooks for managing/catching/logging errors git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6553 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/display_messages.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/display_messages.php b/functions/display_messages.php index 74c8385f..83848d0b 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -87,6 +87,8 @@ function logout_error( $errString, $errTitle = '' ) { $color[8] = '#000000'; /* black Normal text */ } + list($junk, $errString, $errTitle) = do_hook('logout_error', $errString, $errTitle); + if ( $errTitle == '' ) { $errTitle = $errString; } @@ -124,6 +126,8 @@ function error_box($string, $color) { $err = _("ERROR"); + $string = concat_hook_function('error_box', $string); + /* check if the page header has been sent; if not, send it! */ if(!isset($pageheader_sent) && !$pageheader_sent) { /* include this just to be sure */ -- 2.25.1