|
@@ -61,8 +61,8 @@ |
|
|
block discarded – undo |
|
61
|
61
|
{ |
|
62
|
62
|
if (($this->left_offset < 0 || $this->right_offset < 0) && $this->config->getTotalPages() > 1) { |
|
63
|
63
|
// definition of offset to the left and to the right of the selected page |
|
64
|
|
- $this->left_offset = (int)floor(($this->config->getMaxNavigate() - 1) / 2); |
|
65
|
|
- $this->right_offset = (int)ceil(($this->config->getMaxNavigate() - 1) / 2); |
|
|
64
|
+ $this->left_offset = (int) floor(($this->config->getMaxNavigate() - 1) / 2); |
|
|
65
|
+ $this->right_offset = (int) ceil(($this->config->getMaxNavigate() - 1) / 2); |
|
66
|
66
|
|
|
67
|
67
|
// adjustment, if the offset is too large left |
|
68
|
68
|
if ($this->config->getCurrentPage() - $this->left_offset < 1) { |
Please login to merge, or discard this patch.