Skip to content
Permalink
Browse files

fix(river): rss layout supports mulitple installations in the same host

When there are more installations of Elgg on the same host the river
items would not be unique across the multiple installations.

fixes: #7019
  • Loading branch information...
jeabakker committed Oct 24, 2014
1 parent a18d310 commit 2e7262b4d5dbebbcb24aa1a2dc841bc30007a67f
Showing with 6 additions and 1 deletion.
  1. +6 −1 views/rss/river/elements/layout.php
@@ -24,9 +24,14 @@
$site_url = parse_url(elgg_get_site_url());
$domain = htmlspecialchars($site_url['host'], ENT_NOQUOTES, 'UTF-8');
$path = '';
if ($site_url['path']) {
$path = htmlspecialchars($site_url['path'], ENT_NOQUOTES, 'UTF-8');
$path = "::$path";
}
$html = <<<__HTML
<guid isPermaLink="false">$domain::river::$item->id</guid>
<guid isPermaLink="false">$domain$path::river::$item->id</guid>
<pubDate>$timestamp</pubDate>
<link>$url</link>
<title><![CDATA[$title]]></title>

0 comments on commit 2e7262b

Please sign in to comment.
You can’t perform that action at this time.