diff options
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/template.php b/lib/template.php index a10cabf5931..868d5f2ba2e 100644 --- a/lib/template.php +++ b/lib/template.php @@ -496,4 +496,19 @@ 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(); + } + + } |