Changeset 3347

Show
Ignore:
Timestamp:
08/17/2008 09:28:40 AM (4 months ago)
Author:
Geert
Message:

Follow-up to r3346. Fixed recursive Kohana::new_list_files();

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r3346 r3347  
    10041004 
    10051005        /** 
    1006          * Lists all files and directories in a resource path. 
     1006         * Lists all files in a resource path. 
    10071007         * 
    10081008         * @param   string   directory to search 
    10091009         * @param   boolean  list all files to the maximum depth? 
    1010          * @param   string   full path to search (used for recursion, *never* set this manually) 
    1011          * @return  array    filenames and directories 
     1010         * @return  array    resolved filename paths 
    10121011         */ 
    10131012        public static function list_files($directory, $recursive = FALSE) 
    10141013        { 
    10151014                $files = array(); 
    1016  
    10171015                $paths = array_reverse(Kohana::include_paths()); 
    10181016 
     
    10321030                                        if ($file->isDir()) 
    10331031                                        { 
    1034                                                 if ($recursive == TRUE) 
     1032                                                if ($recursive === TRUE) 
    10351033                                                { 
    10361034                                                        // Recursively add files 
     
    10621060        { 
    10631061                $files = array(); 
    1064  
    10651062                $paths = array_reverse(Kohana::include_paths()); 
    10661063