aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/page_elements')
-rw-r--r--views/default/page_elements/html_begin.php5
-rw-r--r--views/default/page_elements/owner_block.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/views/default/page_elements/html_begin.php b/views/default/page_elements/html_begin.php
index 58c58833b..bd88cf218 100644
--- a/views/default/page_elements/html_begin.php
+++ b/views/default/page_elements/html_begin.php
@@ -19,12 +19,13 @@ if (empty($vars['title'])) {
global $autofeed;
if (isset($autofeed) && $autofeed == true) {
- $url = $url2 = full_url();
+ $url = full_url();
if (substr_count($url,'?')) {
- $url .= "&view=rss";
+ $url .= "&view=rss";
} else {
$url .= "?view=rss";
}
+ $url = elgg_format_url($url);
$feedref = <<<END
<link rel="alternate" type="application/rss+xml" title="RSS" href="{$url}" />
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php
index 53a7ea089..429683777 100644
--- a/views/default/page_elements/owner_block.php
+++ b/views/default/page_elements/owner_block.php
@@ -15,12 +15,13 @@ $contents = "";
// Are there feeds to display?
global $autofeed;
if (isset($autofeed) && $autofeed == true) {
- $url = $url2 = full_url();
+ $url = full_url();
if (substr_count($url,'?')) {
$url .= "&view=rss";
} else {
$url .= "?view=rss";
}
+ $url = elgg_format_url($url);
$label = elgg_echo('feed:rss');
$contents .= <<<END
<div class="rss_link clearfloat"><a href="{$url}" rel="nofollow" title="{$label}">{$label}</a></div>