Skip to content
Browse files

MDL-32919 missing default for the last params cause invalid parameter…

… exception with REST
  • Loading branch information...
1 parent 8430d87 commit b5bd42e873c5ba2549ea401c23ee96eb50e87919 @mouneyrac mouneyrac committed with jleyva May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/externallib.php
View
2 course/externallib.php
@@ -921,7 +921,7 @@ public static function import_course_parameters() {
* @return null
* @since Moodle 2.3
*/
- public static function import_course($importfrom, $importto, $deletecontent, $options) {
+ public static function import_course($importfrom, $importto, $deletecontent = 0, $options = array()) {
global $CFG, $USER, $DB;
require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');
require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');

0 comments on commit b5bd42e

Please sign in to comment.
Something went wrong with that request. Please try again.