mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
blocklib: MDL-19010 eliminate remaining calls to blocks_repopulate_page
This commit is contained in:
parent
cf37931b7f
commit
6cbcbf0fb3
7 changed files with 15 additions and 17 deletions
|
@ -1109,8 +1109,7 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
|
|||
|
||||
if ($newid = $DB->insert_record('course', $newsite)) {
|
||||
// Site created, add blocks for it
|
||||
$page = page_create_object(PAGE_COURSE_VIEW, $newid);
|
||||
blocks_repopulate_page($page); // Return value not checked because you can always edit later
|
||||
blocks_add_default_course_blocks($DB->get_record('course', array('id' => $newid)));
|
||||
|
||||
// create default course category
|
||||
$cat = get_course_category();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue