Переглянути джерело

Small perf improvement : filter before sort

tags/v6.0.0alpha2
Brice Maron 11 роки тому
джерело
коміт
d5da94acbc
1 змінених файлів з 3 додано та 3 видалено
  1. 3
    3
      lib/config.php

+ 3
- 3
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");


Завантаження…
Відмінити
Зберегти