aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-15 22:28:46 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-15 22:28:46 -0400
commit81dac97890197658e5446e464604c2bc15903e5a (patch)
tree8851b7360da4170194580984805f111a0260e809 /views/default
parent3945ddea5f7b5bef5b5b67f8406ab9bbd5514955 (diff)
downloadelgg-81dac97890197658e5446e464604c2bc15903e5a.tar.gz
elgg-81dac97890197658e5446e464604c2bc15903e5a.tar.bz2
Fixes #4582 using output/url for links in pagination
Diffstat (limited to 'views/default')
-rw-r--r--views/default/navigation/pagination.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php
index e0d355327..04044c51c 100644
--- a/views/default/navigation/pagination.php
+++ b/views/default/navigation/pagination.php
@@ -113,7 +113,12 @@ foreach ($pages->items as $page) {
} else {
$page_offset = (($page - 1) * $limit);
$url = elgg_http_add_url_query_elements($base_url, array($offset_key => $page_offset));
- echo "<li><a href=\"$url\">$page</a></li>";
+ $link = elgg_view('output/url', array(
+ 'href' => $url,
+ 'text' => $page,
+ 'is_trusted' => true,
+ ));
+ echo "<li>$link</li>";
}
}