mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
e561e6fe6c
commit
a81bf9c3ce
3 changed files with 538 additions and 504 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue