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:
skodak 2006-10-13 09:58:53 +00:00
parent e561e6fe6c
commit a81bf9c3ce
3 changed files with 538 additions and 504 deletions

View file

@ -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;