aboutsummaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-21 22:30:32 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-21 22:30:32 +0200
commit8c5df31c4951423857e394de02ae25ea5cb53698 (patch)
tree8532d33205c4eebdabf06e1ce8352cf2b4ff4acc /lib/setup.php
parentdf8ad46daef960accd1e307f74e7bcb705e9fc7b (diff)
downloadnextcloud-server-8c5df31c4951423857e394de02ae25ea5cb53698.tar.gz
nextcloud-server-8c5df31c4951423857e394de02ae25ea5cb53698.zip
DRY use OC_Template::printErrorPage
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 59f4cab75de..05a49890976 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -185,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();
}
}