Skip to content

Commit

Permalink
removed spacers
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Schwering committed Jun 15, 2011
1 parent 7d5d33f commit b701f0b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions extensions/helper/Paginator.php
Expand Up @@ -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'];
Expand All @@ -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'];
Expand All @@ -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'];
Expand All @@ -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'];
Expand Down

0 comments on commit b701f0b

Please sign in to comment.