Browse files

Made sure the linkContainer option is also added on 'current' pages.

  • Loading branch information...
1 parent ea458aa commit 0c7927a3f896237b013893d889076febda635e8a @Mav Mav committed Feb 25, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Jumping.php
View
6 Jumping.php
@@ -247,7 +247,11 @@ function _getPageLinks($url = '')
$links .= $this->_renderLink(str_replace('%d', $i, $this->_altPage), $i);
} else {
$this->range[$i] = true;
- $links .= $this->_curPageSpanPre . $i . $this->_curPageSpanPost;
+ if (!empty($this->_linkContainer)) {
+ $links .= '<'.$this->_linkContainer.'>' . $this->_curPageSpanPre . $i . $this->_curPageSpanPost . '</'.$this->_linkContainer.'>';
+ } else {
+ $links .= $this->_curPageSpanPre . $i . $this->_curPageSpanPost;
+ }
}
$links .= $this->_spacesBefore
. (($i != $this->_totalPages) ? $this->_separator.$this->_spacesAfter : '');

0 comments on commit 0c7927a

Please sign in to comment.