]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove conditional check for 5.3 compatibility
authorLukas Reschke <lukas@owncloud.com>
Fri, 12 Dec 2014 11:25:59 +0000 (12:25 +0100)
committerLukas Reschke <lukas@owncloud.com>
Fri, 12 Dec 2014 11:25:59 +0000 (12:25 +0100)
apps/files_external/lib/config.php

index b4ab8b70f3358519696eb6bbdec2a6d08bf26d8e..5742b8f47e25b338c217df145a80ad759b6a1056 100644 (file)
@@ -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);
        }