Merge pull request #700 from eMerzh/fix_error_display
Quick Fix a dirty function preventing showing errors
This commit is contained in:
commit
521b6c7b04
|
@ -497,18 +497,14 @@ class OC_Template{
|
||||||
return $content->printPage();
|
return $content->printPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Print a fatal error page and terminates the script
|
* @brief Print a fatal error page and terminates the script
|
||||||
* @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;
|
OC_Template::printGuestPage("", "error", array("errors" => $errors));
|
||||||
$errors[]=$error;
|
die();
|
||||||
OC_Template::printGuestPage("", "error", array("errors" => $errors));
|
}
|
||||||
die();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue