Merge branch 'MDL-45897_my2' of https://github.com/andyjdavis/moodle
This commit is contained in:
+3
-7
@@ -2178,11 +2178,7 @@ function blocks_add_default_system_blocks() {
|
||||
$page->blocks->add_blocks(array(BLOCK_POS_LEFT => array('navigation', 'settings')), '*', null, true);
|
||||
$page->blocks->add_blocks(array(BLOCK_POS_LEFT => array('admin_bookmarks')), 'admin-*', null, null, 2);
|
||||
|
||||
if ($defaultmypage = $DB->get_record('my_pages', array('userid'=>null, 'name'=>'__default', 'private'=>1))) {
|
||||
$subpagepattern = $defaultmypage->id;
|
||||
} else {
|
||||
$subpagepattern = null;
|
||||
}
|
||||
|
||||
$page->blocks->add_blocks(array(BLOCK_POS_RIGHT => array('private_files', 'online_users'), 'content' => array('course_overview')), 'my-index', $subpagepattern, false);
|
||||
$newblocks = array('private_files', 'online_users', 'badges', 'calendar_month', 'calendar_upcoming');
|
||||
$newcontent = array('course_overview');
|
||||
$page->blocks->add_blocks(array(BLOCK_POS_RIGHT => $newblocks, 'content' => $newcontent), 'my-index');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user