From 96fa332b070e3255d2ae671694013cb8b1c873dd Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 25 Oct 2006 00:51:12 +0000 Subject: [PATCH] r1271: If $bugsys->options['pagelinks'] is set to 0, then actually display all pages instead of only displaying one --- docs/changes.txt | 1 + includes/class_pagination.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 1c9a321..aaa576e 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -4,6 +4,7 @@ - Fixed a SQL error received upon deleting a resolution (http://www.bluestatic.org/bugs/showreport.php?bugid=40) - When searching and selecting multiple items for a field, only the first one is used in the search (http://www.bluestatic.org/bugs/showreport.php?bugid=39) - Need to cast the unserialized data to an array to remove an implode() warning [admin/field.php#235] +- When $bugsys->options['pagelinks'] is set to 0, it now actually does its advertised behavior (http://www.bluestatic.org/bugs/showreport.php?bugid=45) 1.1.3 =============================== diff --git a/includes/class_pagination.php b/includes/class_pagination.php index dbc5007..31cfe8f 100644 --- a/includes/class_pagination.php +++ b/includes/class_pagination.php @@ -102,6 +102,10 @@ class Pagination function split_pages() { $this->pagecount = ceil($this->total / $this->perpage); + if ($this->pagelinks == 0) + { + $this->pagelinks = $this->pagecount; + } } /** -- 2.43.5