From 8b7ff0d472d637e0b0fa51036e4153d6516c8fd4 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 23 Nov 2009 16:42:56 -0700 Subject: [PATCH] Remove unused parameter. --- imp/lib/Mailbox.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/imp/lib/Mailbox.php b/imp/lib/Mailbox.php index b5738d84b..93e37893b 100644 --- a/imp/lib/Mailbox.php +++ b/imp/lib/Mailbox.php @@ -490,10 +490,8 @@ class IMP_Mailbox * Using the preferences and the current mailbox, determines the messages * to view on the current page. * - * @param integer $page The page number currently being displayed. - * @param integer $start The starting message number. - * @param integer $page_size Override the maxmsgs preference and specify - * the page size. + * @param integer $page The page number currently being displayed. + * @param integer $start The starting message number. * * @return array An array with the following fields: *
@@ -508,15 +506,13 @@ class IMP_Mailbox
      * 'pagecount' - (integer) The number of pages in this mailbox.
      * 
*/ - public function buildMailboxPage($page = 0, $start = 0, $page_size = null) + public function buildMailboxPage($page = 0, $start = 0, $opts = array()) { $this->_buildMailbox(); $ret = array('msgcount' => count($this->_sorted)); - if (is_null($page_size)) { - $page_size = $GLOBALS['prefs']->getValue('max_msgs'); - } + $page_size = $GLOBALS['prefs']->getValue('max_msgs'); if ($ret['msgcount'] > $page_size) { $ret['pagecount'] = ceil($ret['msgcount'] / $page_size); -- 2.11.0