From: pdontthink Date: Tue, 10 Feb 2004 04:57:56 +0000 (+0000) Subject: New hooks for managing/catching/logging errors X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=8d42e09a3cece9439e3ea13e5cbcc434cfaedaeb 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 --- 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 */