Skip to content

Commit

Permalink
Merge pull request #41 from chrisGeonet/master
Browse files Browse the repository at this point in the history
Add namespace to item title and link
  • Loading branch information
lukesnowden authored Apr 25, 2019
2 parents 8a14e8e + 66a37a5 commit afa3ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LukeSnowden/GoogleShoppingFeed/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function title($title)
{
$node = new Node('title');
$title = $this->safeCharEncodeText($title);
$this->nodes['title'] = $node->value($title)->addCdata();
$this->nodes['title'] = $node->value($title)->_namespace($this->namespace)->addCdata();
}

/**
Expand All @@ -103,7 +103,7 @@ public function link($link)
{
$node = new Node('link');
$link = $this->safeCharEncodeURL($link);
$this->nodes['link'] = $node->value($link)->addCdata();
$this->nodes['link'] = $node->value($link)->_namespace($this->namespace)->addCdata();
}

/**
Expand Down

0 comments on commit afa3ecf

Please sign in to comment.