mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
small commenting change
This commit is contained in:
parent
20f500dc4d
commit
f6ea3132c1
1 changed files with 1 additions and 2 deletions
|
@ -217,7 +217,6 @@ class moodle_list{
|
||||||
$records = $this->records;
|
$records = $this->records;
|
||||||
$page = $this->page;
|
$page = $this->page;
|
||||||
if (!empty($page)) {
|
if (!empty($page)) {
|
||||||
|
|
||||||
$this->firstitem = ($page-1) * $this->itemsperpage + 1;
|
$this->firstitem = ($page-1) * $this->itemsperpage + 1;
|
||||||
$this->lastitem = $this->firstitem + $this->itemsperpage - 1;
|
$this->lastitem = $this->firstitem + $this->itemsperpage - 1;
|
||||||
}
|
}
|
||||||
|
@ -243,9 +242,9 @@ class moodle_list{
|
||||||
}
|
}
|
||||||
$newlistitem =& new $this->listitemclassname($record, $this, $newattributes, $inpage);
|
$newlistitem =& new $this->listitemclassname($record, $this, $newattributes, $inpage);
|
||||||
if ($inpage){
|
if ($inpage){
|
||||||
//but don't recurse down the tree for items that are not on this page
|
|
||||||
$newlistitem->create_children($records, $this->childparent, $record->id);
|
$newlistitem->create_children($records, $this->childparent, $record->id);
|
||||||
} else {
|
} else {
|
||||||
|
//don't recurse down the tree for items that are not on this page
|
||||||
$this->paged = true;
|
$this->paged = true;
|
||||||
}
|
}
|
||||||
$itemiter++;
|
$itemiter++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue