diff options
author | Brice Maron <brice@bmaron.net> | 2013-03-09 21:41:59 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2013-03-09 21:41:59 +0100 |
commit | d5da94acbcc53e310a1970af12af6712eb374a09 (patch) | |
tree | 200d576135b0253249e7516bb9907adc97faf8f0 /lib/config.php | |
parent | 4994eaace15a53fc1f706874485761b5a992b3db (diff) | |
download | nextcloud-server-d5da94acbcc53e310a1970af12af6712eb374a09.tar.gz nextcloud-server-d5da94acbcc53e310a1970af12af6712eb374a09.zip |
Small perf improvement : filter before sort
Diffstat (limited to 'lib/config.php')
-rw-r--r-- | lib/config.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/config.php b/lib/config.php index 626dc8b02e3..387948c49cf 100644 --- a/lib/config.php +++ b/lib/config.php @@ -133,12 +133,12 @@ class OC_Config{ // read all file in config dir ending by config.php $config_files = glob( OC::$SERVERROOT."/config/*.config.php"); - //Sort array naturally : - natsort($config_files); - //Filter only regular files $config_files = array_filter($config_files, 'is_file'); + //Sort array naturally : + natsort($config_files); + // Add default config array_unshift($config_files,OC::$SERVERROOT."/config/config.php"); |