MDL-20278 moodle_paging_bar - no link for the current page number
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user