Kaynağa Gözat

Small perf improvement : filter before sort

tags/v6.0.0alpha2
Brice Maron 11 yıl önce
ebeveyn
işleme
d5da94acbc
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3
    3
      lib/config.php

+ 3
- 3
lib/config.php Dosyayı Görüntüle

@@ -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");


Loading…
İptal
Kaydet