Changeset 205

Show
Ignore:
Timestamp:
07/29/07 21:04:42 (1 year ago)
Author:
hans
Message:

ticket:118 - Added fix from domain51.com for NULL projects in UnknownElement

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/UnknownElement.php

    r123 r205  
    131131                $parent->addTask($realChild); 
    132132            } else { 
    133                 $realChild = $ih->createElement($this->project, $parent, $child->getTag()); 
     133                                $project = $this->project === null ? $parent->project : $this->project; 
     134                                $realChild = $ih->createElement($project, $parent, $child->getTag()); 
    134135            } 
    135136 
     
    138139                $realChild->setRuntimeConfigurableWrapper($childWrapper); 
    139140            } 
    140  
    141             $child->handleChildren($realChild, $childWrapper); 
     141                         
     142            if ($realChild instanceof ProjectComponent) { 
     143                $child->handleChildren($realChild, $childWrapper); 
     144            } 
     145             
    142146            if ($realChild instanceof Task) { 
    143147                $realChild->maybeConfigure();