Fix a dirty function preventing showing errors

This commit is contained in:
Brice Maron 2012-12-03 22:53:06 +00:00
parent 4cb760a924
commit a310dcb0ff
1 changed files with 10 additions and 14 deletions

View File

@ -502,13 +502,9 @@ class OC_Template{
* @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;
public static function printErrorPage( $error_msg, $hint = '' ) {
$errors = array(array('error' => $error_msg, 'hint' => $hint));
OC_Template::printGuestPage("", "error", array("errors" => $errors));
die();
}
}