Skip to content

Commit

Permalink
use method
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Sokil committed Apr 5, 2018
1 parent 1ffbd36 commit 0526f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ad/AbstractAdNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected function buildCreative($type)
$this->creativesDomElement = $this->adDomElement->getElementsByTagName('Creatives')->item(0);
if (!$this->creativesDomElement) {
$this->creativesDomElement = $this->adDomElement->ownerDocument->createElement('Creatives');
$this->adDomElement->firstChild->appendChild($this->creativesDomElement);
$this->getDomElement()->appendChild($this->creativesDomElement);
}
}

Expand Down Expand Up @@ -235,7 +235,7 @@ public function addExtension($type, $value)
$this->extensionsDomElement = $this->adDomElement->getElementsByTagName('Extensions')->item(0);
if (!$this->extensionsDomElement) {
$this->extensionsDomElement = $this->adDomElement->ownerDocument->createElement('Extensions');
$this->adDomElement->firstChild->appendChild($this->extensionsDomElement);
$this->getDomElement()->appendChild($this->extensionsDomElement);
}
}

Expand Down

0 comments on commit 0526f7e

Please sign in to comment.