From: stevetruckstuff Date: Thu, 10 Aug 2006 22:26:19 +0000 (+0000) Subject: Add function for displaying errors to avoid having to call $oErrorHandler or $this... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f6dccc957f01e29e56a5f6c0897d8ea94fbbaaf1;p=squirrelmail.git Add function for displaying errors to avoid having to call $oErrorHandler or $this within footer template. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11508 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/util_global.php b/templates/util_global.php index e51091fb..2ffd15e5 100644 --- a/templates/util_global.php +++ b/templates/util_global.php @@ -75,3 +75,15 @@ function getIconPath ($icon_theme_path, $icon_name) { return NULL; } + +/** + * Display error messages for use in footer.tpl + * + * @author Steve Brown + * @since 1.5.2 + **/ +function displayErrors () { + global $oErrorHandler; + + $oErrorHandler->displayErrors(); +}