Development

Changeset 2978

You must first sign up to be able to contribute.

Changeset 2978

Show
Ignore:
Timestamp:
12/08/06 20:15:44 (2 years ago)
Author:
fabien
Message:

pake: fixed glob for php < 5.1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/pake/trunk/lib/pake/pakeFinder.class.php

    r2938 r2978  
    324324    for ($i = 0; $i < $numargs; $i++) 
    325325    { 
    326       $dirs = array_merge($dirs, (array) glob($arg_list[$i])); 
     326      if ($argDirs = glob($arg_list[$i])) 
     327      { 
     328        $dirs = array_merge($dirs, $argDirs); 
     329      } 
    327330    } 
    328331 
  • tools/pake/trunk/lib/pake/pakeYaml.class.php

    r1791 r2978  
    1111  class pakeYaml 
    1212  { 
    13     public static function load ($input) 
     13    public static function load($input) 
    1414    { 
    1515      // syck is prefered over spyc 
     
    3030    } 
    3131 
    32     public static function dump ($array) 
     32    public static function dump($array) 
    3333    { 
    3434      $spyc = new pakeSpyc();