]> git.mjollnir.org Git - moodle.git/commitdiff
questions MDL-19820 Added set_url calls
authorsamhemelryk <samhemelryk>
Wed, 16 Sep 2009 08:19:22 +0000 (08:19 +0000)
committersamhemelryk <samhemelryk>
Wed, 16 Sep 2009 08:19:22 +0000 (08:19 +0000)
course/edit.php

index c551f6836be16b3c4f8cbfe1b9f0757eb3082561..70c1ef9014980a26fcb7c41244892279eab53777 100644 (file)
         print_error('needcoursecategroyid');
     }
 
+    $PAGE->set_url($CFG->wwwroot.'/course/edit.php');
+    if ($id !== 0) {
+        $PAGE->url->param('id',$id);
+    } else {
+        $PAGE->url->param('category',$categoryid);
+    }
+
 /// prepare course
     if (!empty($course)) {
         $allowedmods = array();