Skip to content
Snippets Groups Projects
Commit 521b6c7b authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #700 from eMerzh/fix_error_display

Quick Fix a dirty function preventing showing errors
parents 524f3c3c a310dcb0
No related branches found
No related tags found
No related merge requests found
...@@ -502,13 +502,9 @@ class OC_Template{ ...@@ -502,13 +502,9 @@ class OC_Template{
* @param string $error The error message to show * @param string $error The error message to show
* @param string $hint An option hint message * @param string $hint An option hint message
*/ */
public static function printErrorPage( $error, $hint = '' ) { public static function printErrorPage( $error_msg, $hint = '' ) {
$error['error']=$error; $errors = array(array('error' => $error_msg, 'hint' => $hint));
$error['hint']=$hint;
$errors[]=$error;
OC_Template::printGuestPage("", "error", array("errors" => $errors)); OC_Template::printGuestPage("", "error", array("errors" => $errors));
die(); die();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment