refactored course/edit2.php and edit_form MDL-6914 ; set $CFG->use_new_forms=1; in config.php if you want to test it ;-)
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
$id = optional_param('id', 0, PARAM_INT); // course id
|
||||
$category = optional_param('category', 0, PARAM_INT); // possible default category
|
||||
|
||||
// redirect to new form if testing as developer
|
||||
if (!empty($CFG->use_new_forms)) {
|
||||
redirect('edit2.php?id='.$id.'&category='.$category);
|
||||
}
|
||||
|
||||
require_login();
|
||||
|
||||
$disable_meta = false;
|
||||
|
||||
Reference in New Issue
Block a user