Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set project, location and target

  • Loading branch information...
commit cfa80b67321626fae523c48d989cd3594edd05a4 1 parent e020549
@mrook mrook authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 classes/phing/parser/NestedElementHandler.php
View
5 classes/phing/parser/NestedElementHandler.php
@@ -120,6 +120,11 @@ function init($propType, $attrs) {
try {
if ($this->parent instanceof UnknownElement) {
$this->child = new UnknownElement(strtolower($propType));
+ $this->child->setProject($project);
+ $this->child->setLocation($this->parser->getLocation());
+ if ($this->target !== null) {
+ $this->child->setOwningTarget($this->target);
+ }
$this->parent->addChild($this->child);
} else {
$this->child = $ih->createElement($project, $this->parent, strtolower($propType));
Please sign in to comment.
Something went wrong with that request. Please try again.