Ticket #118: patch

File patch, 1.1 KB (added by development@…, 5 years ago)

A patch created from svn diff

  • classes/phing/UnknownElement.php

     
    130130                $realChild = $this->makeTask($child, $childWrapper, false); 
    131131                $parent->addTask($realChild); 
    132132            } else { 
    133                 $realChild = $ih->createElement($this->project, $parent, $child->getTag()); 
     133                $project = is_null($this->project) ? $parent->project : $this->project; 
     134                $realChild = $ih->createElement($project, $parent, $child->getTag()); 
    134135            } 
    135136 
    136137            $childWrapper->setProxy($realChild); 
     
    138139                $realChild->setRuntimeConfigurableWrapper($childWrapper); 
    139140            } 
    140141 
    141             $child->handleChildren($realChild, $childWrapper); 
     142            if ($realChild instanceof ProjectComponent) { 
     143                $child->handleChildren($realChild, $childWrapper); 
     144            } 
    142145            if ($realChild instanceof Task) { 
    143146                $realChild->maybeConfigure(); 
    144147            }