Development

Changeset 2574

You must first sign up to be able to contribute.

Changeset 2574

Show
Ignore:
Timestamp:
10/31/06 07:44:28 (2 years ago)
Author:
fabien
Message:

pake: fixed 2 bugs

Files:

Legend:

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

    r2456 r2574  
    355355 
    356356      // remove leading / 
    357       $files = array_map(create_function('$f', 'return false === strpos($f, DIRECTORY_SEPARATOR) ? $f : substr($f, 1);'), $files); 
     357      $files = array_map(create_function('$f', 'return 0 === strpos($f, DIRECTORY_SEPARATOR) ? substr($f, 1) : $f;'), $files); 
    358358    } 
    359359 
  • tools/pake/trunk/test/pakeGetoptTest.php

    r1765 r2574  
    2020    catch (pakeException $e) 
    2121    { 
    22       $this->assertWantedPattern('/you cannot get a value for a NO_ARGUMENT/', $e->getMessage()); 
     22      $this->assertWantedPattern('/You cannot get a value for a NO_ARGUMENT/', $e->getMessage()); 
    2323    } 
    2424