diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-24 23:34:38 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-24 23:51:36 +0100 |
commit | 06cf93e6ee19ea5c710b029fd403af3c90529074 (patch) | |
tree | 59b7f506000c3fa14b97d3ec0f16d3f56a313b7a /settings/admin.php | |
parent | 09a06e4f0a2d473e1dc3ea1d92fefc3cfa318d4d (diff) | |
download | nextcloud-server-06cf93e6ee19ea5c710b029fd403af3c90529074.tar.gz nextcloud-server-06cf93e6ee19ea5c710b029fd403af3c90529074.zip |
Move UTF-8 check to setup
Nobody reads the warnings anyways and so we should enforce it at installation time... Also allows us to get rid of some duplicated code.
To test change the `default_charset` to something other than `utf-8` or `UTF-8`, both should work fine with that change here. An error should then get shown.
We already set those default charsets in the shipped .user.ini and .htaccess
Diffstat (limited to 'settings/admin.php')
-rw-r--r-- | settings/admin.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/settings/admin.php b/settings/admin.php index 9f39936fe7b..fc2df77eae1 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -65,7 +65,6 @@ $template->assign('doesLogFileExist', $doesLogFileExist); $template->assign('showLog', $showLog); $template->assign('readOnlyConfigEnabled', OC_Helper::isReadOnlyConfigEnabled()); $template->assign('isLocaleWorking', OC_Util::isSetLocaleWorking()); -$template->assign('isPhpCharSetUtf8', OC_Util::isPhpCharSetUtf8()); $template->assign('isAnnotationsWorking', OC_Util::isAnnotationsWorking()); $template->assign('has_fileinfo', OC_Util::fileInfoLoaded()); $template->assign('backgroundjobs_mode', $appConfig->getValue('core', 'backgroundjobs_mode', 'ajax')); @@ -116,7 +115,7 @@ $forms = OC_App::getForms('admin'); $l = OC_L10N::get('settings'); $formsAndMore = array(); if ($request->getServerProtocol() !== 'https' || !OC_Util::isAnnotationsWorking() || - $suggestedOverwriteCliUrl || !OC_Util::isSetLocaleWorking() || !OC_Util::isPhpCharSetUtf8() || + $suggestedOverwriteCliUrl || !OC_Util::isSetLocaleWorking() || !OC_Util::fileInfoLoaded() || $databaseOverload ) { $formsAndMore[] = array('anchor' => 'security-warning', 'section-name' => $l->t('Security & Setup Warnings')); |