Changeset 51

Show
Ignore:
Timestamp:
04/12/06 15:24:51 (3 years ago)
Author:
mrook
Message:

Apply patch to fix importing files from directories with dots (closes issue #24)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/classes/phing/Phing.php

    r11 r51  
    811811        } 
    812812         
    813         $path = strtr($dotPath, '.', DIRECTORY_SEPARATOR) . ".php";         
     813        $dotClassname = basename($dotPath); 
     814        $dotClassnamePos = strlen($dotPath) - strlen($dotClassname); 
     815        $classFile = strtr($dotClassname, '.', DIRECTORY_SEPARATOR) . ".php"; 
     816        $path = substr_replace($dotPath, $classFile, $dotClassnamePos); 
    814817         
    815818        Phing::__import($path, $classpath);