mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
fix for category.php lists. Slight change in listlib api caused breakage.
This commit is contained in:
parent
6e393d06ec
commit
bdc66c2a5d
@ -210,7 +210,7 @@ class moodle_list{
|
||||
* @return integer $offset + how many toplevel items where there in this list.
|
||||
*
|
||||
*/
|
||||
function list_from_records($paged = false, $offset =0){
|
||||
function list_from_records($paged = false, $offset =1){
|
||||
$this->paged = $paged;
|
||||
$this->offset = $offset;
|
||||
$this->get_records();
|
||||
|
@ -138,7 +138,7 @@ class question_category_object {
|
||||
$this->str->page = get_string('page');
|
||||
$this->pixpath = $CFG->pixpath;
|
||||
|
||||
$this->editlist = new question_category_list('ul', '', true, $page, $pageurl, 'cpage');
|
||||
$this->editlist = new question_category_list('ul', '', true, $pageurl, $page, 'cpage', QUESTION_PAGE_LENGTH);
|
||||
|
||||
$this->pageurl = $pageurl;
|
||||
|
||||
@ -177,7 +177,7 @@ class question_category_object {
|
||||
error("Error: Could not find or make a category!");
|
||||
}
|
||||
|
||||
$this->editlist->list_from_records(QUESTION_PAGE_LENGTH);
|
||||
$this->editlist->list_from_records();
|
||||
|
||||
$this->categories = $this->editlist->records;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user