From c46bcbc60765629111e6069358f7af87a5fc50cc Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 15 Aug 2008 13:57:31 +0000 Subject: Removed pagination in widgets git-svn-id: https://code.elgg.org/elgg/trunk@1938 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/pagination.php | 2 +- views/default/widgets/wrapper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default') diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php index 12bf5ec20..54fa3bdec 100644 --- a/views/default/navigation/pagination.php +++ b/views/default/navigation/pagination.php @@ -44,7 +44,7 @@ $baseurl = preg_replace('/[\&\?]'.$word.'\=[0-9]*/',"",$vars['baseurl']); //only display if there is content to paginate through or if we already have an offset - if ($count > $limit || $offset > 0){ + if (($count > $limit || $offset > 0) && get_context() != 'widget') { ?> diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index 4fc752af9..7eda06ff2 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -91,7 +91,7 @@