From f6dccc957f01e29e56a5f6c0897d8ea94fbbaaf1 Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Thu, 10 Aug 2006 22:26:19 +0000 Subject: [PATCH] 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 --- templates/util_global.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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(); +} -- 2.25.1