From 39dbecdc104c466687b16bc3d0eed68708f091f4 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Mon, 3 Dec 2012 22:53:06 +0000 Subject: Fix a dirty function preventing showing errors --- lib/template.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/template.php b/lib/template.php index 5d8baca6e7b..f58e6e6f675 100644 --- a/lib/template.php +++ b/lib/template.php @@ -484,16 +484,13 @@ class OC_Template{ } /** - * @brief Print a fatal error page and terminates the script - * @param string $error The error message to show - * @param string $hint An option hint message - */ - public static function printErrorPage( $error, $hint = '' ) { - $error['error']=$error; - $error['hint']=$hint; - $errors[]=$error; + * @brief Print a fatal error page and terminates the script + * @param string $error The error message to show + * @param string $hint An option hint message + */ + public static function printErrorPage( $error_msg, $hint = '' ) { + $errors = array(array('error' => $error_msg, 'hint' => $hint)); OC_Template::printGuestPage("", "error", array("errors" => $errors)); die(); } - } -- cgit v1.2.3