From b701f0b78839f6482ff2ec5b3068fa2014242370 Mon Sep 17 00:00:00 2001 From: Marc Schwering Date: Wed, 15 Jun 2011 14:43:08 +0200 Subject: [PATCH] removed spacers --- extensions/helper/Paginator.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/extensions/helper/Paginator.php b/extensions/helper/Paginator.php index 7edc28b..6d8e1d4 100644 --- a/extensions/helper/Paginator.php +++ b/extensions/helper/Paginator.php @@ -170,13 +170,13 @@ public function first(array $options = array()) { $config = array( 'page' => 1 ); - + $url = \lithium\net\http\Router::match( $config + $this->_context->_config['request']->params, $this->_context->_config['request'], array('absolute' => true) ); - + return $this->_context->html->link($this->_config['firstText'], $url); } return $this->_config['firstTextDisabled']; @@ -192,17 +192,17 @@ public function prev(array $options = array()) { if (!empty($options)) { $this->config($options); } - if ($this->_page > 1) { + if ($this->_page > 1) { $config = array( 'page' => ($this->_page - 1) ); - + $url = \lithium\net\http\Router::match( $config + $this->_context->_config['request']->params, $this->_context->_config['request'], array('absolute' => true) ); - + return $this->_context->html->link($this->_config['prevText'], $url); } return $this->_config['prevTextDisabled']; @@ -222,13 +222,13 @@ public function next(array $options = array()) { $config = array( 'page' => ($this->_page + 1) ); - + $url = \lithium\net\http\Router::match( $config + $this->_context->_config['request']->params, $this->_context->_config['request'], array('absolute' => true) ); - + return $this->_context->html->link($this->_config['nextText'], $url); } return $this->_config['nextTextDisabled']; @@ -245,17 +245,17 @@ public function last(array $options = array()) { $this->config($options); } $end = floor(($this->_total / $this->_limit) + 1); - if ($end > $this->_page) { + if ($end > $this->_page) { $config = array( 'page' => $end ); - + $url = \lithium\net\http\Router::match( $config + $this->_context->_config['request']->params, $this->_context->_config['request'], array('absolute' => true) ); - + return $this->_context->html->link($this->_config['lastText'], $url); } return $this->_config['lastTextDisabled'];