Permalink
Browse files

fixing ampersand escape. Forgot to assign it to the var...

  • Loading branch information...
1 parent f7d9b9c commit 6414ed6aec2b6f3f52aab40d1f8c4c86c2fc6d9b @yogoo committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/components/sitemapfriend/model/sitemapfriend/sitemapfriend.class.php
@@ -304,7 +304,7 @@ protected function runDeep($currentParent = 0, $depth = 0) {
$props['changefreq'] = $changefreq;
$props['priority'] = $priority;
// escape ampersand as per http://www.w3.org/TR/REC-xml/#syntax
- preg_replace('/&/', '&', $props['title']);
+ $props['title'] = preg_replace('/&/', '&', $props['title']);
}
$output .= $this->getChunk('Item', $props);

0 comments on commit 6414ed6

Please sign in to comment.