* @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();
$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;
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;