MDL-20278 moodle_paging_bar - no link for the current page number

This commit is contained in:
mudrd8mz
2009-09-14 07:26:54 +00:00
parent 7f7b8cdf26
commit f43cdceb75
4 changed files with 11 additions and 21 deletions
+1 -5
View File
@@ -1660,10 +1660,6 @@ class moodle_paging_bar extends moodle_html_component {
* @var string $pagevar This is the variable name that you use for the page number in your code (ie. 'tablepage', 'blogpage', etc)
*/
public $pagevar = 'page';
/**
* @var bool $nocurr do not display the current page as a link
*/
public $nocurr;
/**
* @var html_link $previouslink A HTML link representing the "previous" page
*/
@@ -1741,7 +1737,7 @@ class moodle_paging_bar extends moodle_html_component {
while ($displaycount < $this->maxdisplay and $currpage < $lastpage) {
$displaypage = $currpage + 1;
if ($this->page == $currpage && empty($this->nocurr)) {
if ($this->page == $currpage) {
$this->pagelinks[] = $displaypage;
} else {
$pagelink = new html_link();