Development

Changeset 2977

You must first sign up to be able to contribute.

Changeset 2977

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

lime: fixed glob for php < 5.1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/lib/lime.php

    r2868 r2977  
    864864  function register_glob($glob) 
    865865  { 
    866     foreach (glob($glob) as $file) 
    867     { 
    868       $this->files[] = realpath($file); 
     866    if ($dirs = glob($glob)) 
     867    { 
     868      foreach ($dirs as $file) 
     869      { 
     870        $this->files[] = realpath($file); 
     871      } 
    869872    } 
    870873  }