mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-73233 admin: Add enabledashboard setting
The $CFG->enabledashboard setting has been added to Appearance > Navigation, to let admins disable the "Dashboard" option from the primary navigation. This commit also changes the behaviour of get_home_page(), to take into account this setting and adds a new method, get_default_home_page(), to return the expected default home page (that wil be used when current default page is not defined or valid).
This commit is contained in:
parent
9344149aba
commit
5349861e69
6 changed files with 196 additions and 14 deletions
|
@ -42,7 +42,7 @@ Feature: Primary navigation
|
|||
|
||||
Examples:
|
||||
| userpreference | homepage |
|
||||
| Site | Home |
|
||||
| Home | Home |
|
||||
| Dashboard | Dashboard |
|
||||
| My courses | My courses |
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue