Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-37224 backup-import: better handling of search button

  • Loading branch information...
commit 84cf3cce0b81b0cf09d76a4f682a68ae354e1bfa 1 parent e2e65d2
@samhemelryk samhemelryk authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 backup/import.php
View
6 backup/import.php
@@ -12,7 +12,7 @@
// The id of the course we are importing FROM (will only be set if past first stage
$importcourseid = optional_param('importid', false, PARAM_INT);
// We just want to check if a search has been run. True if anything is there.
-$coursesearch = optional_param('search', false, PARAM_BOOL);
+$searchcourses = optional_param('searchcourses', false, PARAM_BOOL);
// The target method for the restore (adding or deleting)
$restoretarget = optional_param('target', backup::TARGET_CURRENT_ADDING, PARAM_INT);
@@ -38,7 +38,7 @@
$renderer = $PAGE->get_renderer('core','backup');
// Check if we already have a import course id
-if ($importcourseid === false || $coursesearch) {
+if ($importcourseid === false || $searchcourses) {
// Obviously not... show the selector so one can be chosen
$url = new moodle_url('/backup/import.php', array('id'=>$courseid));
$search = new import_course_search(array('url'=>$url));
@@ -162,4 +162,4 @@
echo $backup->display($renderer);
$backup->destroy();
unset($backup);
-echo $OUTPUT->footer();
+echo $OUTPUT->footer();
Please sign in to comment.
Something went wrong with that request. Please try again.