Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-23 11:40:15 +0300
committerLukas Reschke <lukas@owncloud.com>2015-02-23 11:40:15 +0300
commit43641d917bccf135092521ebc972d4b57d9fba09 (patch)
tree4fad65c30f3b7d7f6bb525aa17b3a6ce9bf9e6f4
parentf63b09facae0e70010cc675aee960d4a0f826078 (diff)
Use "off" and "off" instead of true booleans
Apparently a boolean in php.ini is according to the documentation "on" or "off"… Fixes itself.
-rw-r--r--.htaccess2
-rw-r--r--.user.ini2
-rw-r--r--lib/private/util.php5
3 files changed, 6 insertions, 3 deletions
diff --git a/.htaccess b/.htaccess
index 0ec0fc0134f..844c1fda7f7 100644
--- a/.htaccess
+++ b/.htaccess
@@ -14,7 +14,7 @@ php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value always_populate_raw_post_data -1
php_value default_charset 'UTF-8'
-php_value output_buffering false
+php_value output_buffering off
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
diff --git a/.user.ini b/.user.ini
index f59c3629455..66bf6484fe2 100644
--- a/.user.ini
+++ b/.user.ini
@@ -4,4 +4,4 @@ memory_limit=512M
mbstring.func_overload=0
always_populate_raw_post_data=-1
default_charset='UTF-8'
-output_buffering=false \ No newline at end of file
+output_buffering=off \ No newline at end of file
diff --git a/lib/private/util.php b/lib/private/util.php
index c4e137ea48e..652566be4bc 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -638,8 +638,11 @@ class OC_Util {
$webServerRestart = true;
}
foreach($invalidIniSettings as $setting) {
+ if(is_bool($setting[1])) {
+ $setting[1] = ($setting[1]) ? 'on' : 'off';
+ }
$errors[] = [
- 'error' => $l->t('PHP setting "%s" is not set to "%s".', [$setting[0], $setting[1]]),
+ 'error' => $l->t('PHP setting "%s" is not set to "%s".', [$setting[0], var_export($setting[1], true)]),
'hint' => $l->t('Adjusting this setting in php.ini will make ownCloud run again')
];
$webServerRestart = true;