mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
replaced old MoodlePage class call with new page_base call
This commit is contained in:
parent
1c144d0eed
commit
a9e91540df
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
if ($newid = insert_record('course', $form)) {
|
if ($newid = insert_record('course', $form)) {
|
||||||
|
|
||||||
// Site created, add blocks for it
|
// Site created, add blocks for it
|
||||||
$page = MoodlePage::create_object(MOODLE_PAGE_COURSE, $newid);
|
$page = page_base::create_object(MOODLE_PAGE_COURSE, $newid);
|
||||||
blocks_repopulate_page($page); // Return value not checked because you can always edit later
|
blocks_repopulate_page($page); // Return value not checked because you can always edit later
|
||||||
|
|
||||||
$cat->name = get_string('miscellaneous');
|
$cat->name = get_string('miscellaneous');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue