From: nicolasconnault Date: Tue, 11 Aug 2009 03:32:51 +0000 (+0000) Subject: MDL-19820 Fixed missing $OUTPUT and a couple of other little bugs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bda3e711c6f7a673ff753d9781ed68cfbb376d7e;p=moodle.git MDL-19820 Fixed missing $OUTPUT and a couple of other little bugs --- diff --git a/question/editlib.php b/question/editlib.php index 52388bca57..d022ca61a8 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -1225,7 +1225,7 @@ class question_bank_view { $cm = null, $recurse=1, $page=0, $perpage=100, $showhidden=false, $sortorder='typename', $sortorderdecoded='qtype, name ASC', $showquestiontext = false, $addcontexts = array()) { - global $CFG, $DB; + global $CFG, $DB, $OUTPUT; $category = $this->get_current_category($categoryandcontext); @@ -1289,8 +1289,8 @@ class question_bank_view { } else { $paging = "
$showall
"; } + echo $paging; } - echo $paging; echo ''; echo '
'; @@ -1418,9 +1418,9 @@ class question_bank_view { } else { $movecontexturl = new moodle_url($CFG->wwwroot.'/question/contextmoveq.php', array('returnurl' => $returnurl, - 'ids'=>$questionidlist, + 'ids'=>$questionids, 'tocatid'=> $tocategoryid)); - if ($cm){ + if (!empty($cm->id)){ $movecontexturl->param('cmid', $cm->id); } else { $movecontexturl->param('courseid', $this->course->id);