diff options
author | Brice Maron <brice@bmaron.net> | 2012-12-03 22:53:06 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-12-05 18:16:55 +0000 |
commit | 39dbecdc104c466687b16bc3d0eed68708f091f4 (patch) | |
tree | cfe7523fe74c55d9ff8e9d24e048fef4a460887c /lib | |
parent | da5fd1a3d06e01a828d28a82514bdfd863214f12 (diff) | |
download | nextcloud-server-39dbecdc104c466687b16bc3d0eed68708f091f4.tar.gz nextcloud-server-39dbecdc104c466687b16bc3d0eed68708f091f4.zip |
Fix a dirty function preventing showing errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/template.php | 15 |
1 files changed, 6 insertions, 9 deletions
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(); } - } |