mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #12812 from owncloud/remove-53-workaround
Remove conditional check for 5.3 compatibility
This commit is contained in:
commit
6b4502adeb
1 changed files with 1 additions and 6 deletions
|
|
@ -644,12 +644,7 @@ class OC_Mount_Config {
|
|||
$datadir = \OC_Config::getValue('datadirectory', \OC::$SERVERROOT . '/data/');
|
||||
$file = \OC_Config::getValue('mount_file', $datadir . '/mount.json');
|
||||
}
|
||||
$options = 0;
|
||||
if (defined('JSON_PRETTY_PRINT')) {
|
||||
// only for PHP >= 5.4
|
||||
$options = JSON_PRETTY_PRINT;
|
||||
}
|
||||
$content = json_encode($data, $options);
|
||||
$content = json_encode($data, JSON_PRETTY_PRINT);
|
||||
@file_put_contents($file, $content);
|
||||
@chmod($file, 0640);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue