diff options
author | Brice Maron <brice@bmaron.net> | 2012-12-03 22:53:06 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-12-03 22:53:06 +0000 |
commit | a310dcb0ff4e787ea0a060db6960ba191f04a33f (patch) | |
tree | 73ec05c80cb6a38af756dce99075ce6d03810869 /lib/template.php | |
parent | 4cb760a92402ab3eb8550fb05b05eae800030680 (diff) | |
download | nextcloud-server-a310dcb0ff4e787ea0a060db6960ba191f04a33f.tar.gz nextcloud-server-a310dcb0ff4e787ea0a060db6960ba191f04a33f.zip |
Fix a dirty function preventing showing errors
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/lib/template.php b/lib/template.php index 868d5f2ba2e..04667d73a2c 100644 --- a/lib/template.php +++ b/lib/template.php @@ -497,18 +497,14 @@ class OC_Template{ return $content->printPage(); } - /** - * @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; - OC_Template::printGuestPage("", "error", array("errors" => $errors)); - die(); - } - - + /** + * @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(); + } } |