Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the new CSS-related ids for 1.5. There are great possibilities for the future here, so we 're getting ready. On the other hand, this has to be the ugliest hack I 've ever inflicted on any program (look at pagelib.php). Thankfully it will only stay for just a little while.
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@
|
||||
if ($newid = insert_record('course', $form)) {
|
||||
|
||||
// Site created, add blocks for it
|
||||
$page = page_create_object(MOODLE_PAGE_COURSE, $newid);
|
||||
$page = page_create_object(PAGE_COURSE_VIEW, $newid);
|
||||
blocks_repopulate_page($page); // Return value not checked because you can always edit later
|
||||
|
||||
$cat->name = get_string('miscellaneous');
|
||||
|
||||
Reference in New Issue
Block a user