Remove useless check

This commit is contained in:
Joas Schilling 2016-07-28 15:45:44 +02:00
parent 08ea343adb
commit 02773efe4f
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
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);