Permalink
Browse files

Merge branch 'MDL-27143_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents df33ab2 + b7d66b4 commit 8d70e5cc74e463311fa91c4615929d2e55d69e54 Sam Hemelryk committed Dec 12, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/questionlib.php
  2. +1 −1 question/category_class.php
View
@@ -484,7 +484,7 @@ function question_delete_course_category($category, $newcategory, $feedback=true
/**
* Enter description here...
*
- * @param string $questionids list of questionids
+ * @param array $questionids of question ids
* @param object $newcontext the context to create the saved category in.
* @param string $oldplace a textual description of the think being deleted,
* e.g. from get_context_name
@@ -571,7 +571,7 @@ function question_delete_activity($cm, $feedback=true) {
* function also have to do other work, which is why you should not call this method
* directly from outside the questionbank.
*
- * @param string $questionids a comma-separated list of question ids.
+ * @param array $questionids of question ids.
* @param integer $newcategoryid the id of the category to move to.
*/
function question_move_questions_to_category($questionids, $newcategoryid) {
@@ -360,7 +360,7 @@ public function move_questions($oldcat, $newcat){
global $DB;
$questionids = $DB->get_records_select_menu('question',
'category = ? AND (parent = 0 OR parent = id)', array($oldcat), '', 'id,1');
- question_move_questions_to_category($questionids, $newcat);
+ question_move_questions_to_category(array_keys($questionids), $newcat);
}
/**

0 comments on commit 8d70e5c

Please sign in to comment.