diff options
author | Git'Fellow <carlos@reendex.com> | 2022-05-05 14:46:09 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-05-12 11:16:33 +0300 |
commit | 1d8d92a8539e2adb9325b826f5cdcfc004b946e0 (patch) | |
tree | 30b1055ad60663b39acd7a666f27c144f708b1a8 | |
parent | 58eae891da687bb5f4ace07bcd35879364d46f0b (diff) |
Remove default valuesbackport/32278/stable23
These values are already the default on supported PHP versions.
I suggest to remove these calls.
-rw-r--r-- | lib/base.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/base.php b/lib/base.php index c0b26e96851..60538ff6d16 100644 --- a/lib/base.php +++ b/lib/base.php @@ -140,7 +140,7 @@ class OC { public static function initPaths() { if (defined('PHPUNIT_CONFIG_DIR')) { self::$configDir = OC::$SERVERROOT . '/' . PHPUNIT_CONFIG_DIR . '/'; - } elseif (defined('PHPUNIT_RUN') and PHPUNIT_RUN and is_dir(OC::$SERVERROOT . '/tests/config/')) { + } elseif (defined('PHPUNIT_RUN') && PHPUNIT_RUN && is_dir(OC::$SERVERROOT . '/tests/config/')) { self::$configDir = OC::$SERVERROOT . '/tests/config/'; } elseif ($dir = getenv('NEXTCLOUD_CONFIG_DIR')) { self::$configDir = rtrim($dir, '/') . '/'; @@ -455,14 +455,6 @@ class OC { } /** - * Try to set some values to the required Nextcloud default - */ - public static function setRequiredIniValues() { - @ini_set('default_charset', 'UTF-8'); - @ini_set('gd.jpeg_ignore_warning', '1'); - } - - /** * Send the same site cookies */ private static function sendSameSiteCookies() { @@ -620,7 +612,6 @@ class OC { @ini_set('max_execution_time', '3600'); @ini_set('max_input_time', '3600'); - self::setRequiredIniValues(); self::handleAuthHeaders(); $systemConfig = \OC::$server->get(\OC\SystemConfig::class); self::registerAutoloaderCache($systemConfig); |