aboutsummaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php20
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/setup.php b/lib/setup.php
index d8f4cbfbcbd..05a49890976 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -1,21 +1,7 @@
<?php
-class DatabaseSetupException extends Exception
+class DatabaseSetupException extends \OC\HintException
{
- private $hint;
-
- public function __construct($message, $hint = '', $code = 0, Exception $previous = null) {
- $this->hint = $hint;
- parent::__construct($message, $code, $previous);
- }
-
- public function __toString() {
- return __CLASS__ . ": [{$this->code}]: {$this->message} ({$this->hint})\n";
- }
-
- public function getHint() {
- return $this->hint;
- }
}
class OC_Setup {
@@ -199,9 +185,7 @@ class OC_Setup {
$hint = $l->t('Please double check the <a href=\'%s\'>installation guides</a>.',
'http://doc.owncloud.org/server/5.0/admin_manual/installation.html');
- $tmpl = new OC_Template('', 'error', 'guest');
- $tmpl->assign('errors', array(1 => array('error' => $error, 'hint' => $hint)));
- $tmpl->printPage();
+ OC_Template::printErrorPage($error, $hint);
exit();
}
}