fix for category.php lists. Slight change in listlib api caused breakage.

This commit is contained in:
jamiesensei 2007-05-25 04:59:17 +00:00
parent 6e393d06ec
commit bdc66c2a5d
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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;