diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-22 21:39:44 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-22 21:39:44 +0100 |
commit | 15f53250787c005fe38e0a615d6721180c6b8833 (patch) | |
tree | 6bad9043ec95402c8180c8725ce950a49fc2891e /lib/template.php | |
parent | 78fce834058a38a7dbcc5310e16095c743434bc6 (diff) | |
download | nextcloud-server-15f53250787c005fe38e0a615d6721180c6b8833.tar.gz nextcloud-server-15f53250787c005fe38e0a615d6721180c6b8833.zip |
Don't use routes when displaying error page
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php index 3df5a24f946..0f9efe66496 100644 --- a/lib/template.php +++ b/lib/template.php @@ -530,8 +530,10 @@ class OC_Template{ * @param string $hint An option hint message */ public static function printErrorPage( $error_msg, $hint = '' ) { + $content = new OC_Template( '', 'error', 'error' ); $errors = array(array('error' => $error_msg, 'hint' => $hint)); - OC_Template::printGuestPage("", "error", array("errors" => $errors)); + $content->assign( 'errors', $errors, false ); + $content->printPage(); die(); } } |