Dotclear


Ignore:
Timestamp:
02/24/13 10:07:55 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Optimize way to get media folders tree, from db rather than filesystem. Bruno's patch for not so well tuned hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media_item.php

    r1073 r1103  
    6060     # Prepare directories combo box 
    6161     $dirs_combo = array(); 
    62      foreach ($core->media->getRootDirs() as $v) { 
    63           if ($v->w) { 
    64                $dirs_combo['/'.$v->relname] = $v->relname; 
    65           } 
     62     foreach ($core->media->getDBDirs() as $v) { 
     63          $dirs_combo['/'.$v] = $v; 
    6664     } 
    6765     ksort($dirs_combo); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map