Development

Changeset 8767

You must first sign up to be able to contribute.

Changeset 8767

Show
Ignore:
Timestamp:
05/04/08 13:47:08 (5 months ago)
Author:
fabien
Message:

changed sfFinder to return the symlink path instead of the real path (needed when you use ->relative(), and if not, well, it's the same directory anyway - closes #3421)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/util/sfFinder.class.php

    r8391 r8767  
    393393    } 
    394394 
     395    $dir = realpath($dir); 
     396 
    395397    if (is_link($dir) && !$this->follow_link) 
    396398    { 
     
    424426            if (($this->type == 'directory' || $this->type == 'any') && ($depth >= $this->mindepth) && !$this->is_discarded($dir, $entryname) && $this->match_names($dir, $entryname) && $this->exec_ok($dir, $entryname)) 
    425427            { 
    426               $files[] = realpath($current_entry)
     428              $files[] = $current_entry
    427429            } 
    428430 
     
    439441            if ($this->sort == 'type') 
    440442            { 
    441               $temp_files[] = realpath($current_entry)
     443              $temp_files[] = $current_entry
    442444            } 
    443445            else 
    444446            { 
    445               $files[] = realpath($current_entry)
     447              $files[] = $current_entry
    446448            } 
    447449          } 
     
    456458          if (($this->type == 'directory' || $this->type == 'any') && ($depth >= $this->mindepth) && !$this->is_discarded($dir, $entryname) && $this->match_names($dir, $entryname) && $this->exec_ok($dir, $entryname)) 
    457459          { 
    458             $files[] = realpath($current_entry)
     460            $files[] = $current_entry
    459461          } 
    460462