Remove useless check

This commit is contained in:
Joas Schilling 2016-07-28 15:45:44 +02:00 committed by Bjoern Schiessle
parent ba558664cf
commit 2f574f60ec
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 3 deletions

View File

@ -23,8 +23,6 @@
*
*/
\OC_Util::checkAdminUser();
$config = \OC::$server->getConfig();
$l = \OC::$server->getL10N('theming');
$urlGenerator = \OC::$server->getURLGenerator();
@ -40,7 +38,7 @@ if ($theme !== '') {
$errorMessage = $l->t('You already use a custom theme');
}
$template = new OCP\Template('theming', 'settings-admin');
$template = new \OCP\Template('theming', 'settings-admin');
$template->assign('themable', $themable);
$template->assign('errorMessage', $errorMessage);