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/templates/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/templates/admin.php')
-rw-r--r-- | settings/templates/admin.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 1f7eacd746b..a82d5ee8545 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -175,20 +175,6 @@ if (!$_['has_fileinfo']) { <?php } -// is PHP charset set to UTF8? -if (!$_['isPhpCharSetUtf8']) { - ?> - <div class="section"> - <h2><?php p($l->t('PHP charset is not set to UTF-8'));?></h2> - - <span class="connectionwarning"> - <?php p($l->t("PHP charset is not set to UTF-8. This can cause major issues with non-ASCII characters in file names. We highly recommend to change the value of 'default_charset' php.ini to 'UTF-8'.")); ?> - </span> - - </div> -<?php -} - // is locale working ? if (!$_['isLocaleWorking']) { ?> |