Skip to content

Commit

Permalink
MDL-56769 boost: Change last link in settings menu
Browse files Browse the repository at this point in the history
Was: "Course/Frontpage administration"
Now: "More..."
  • Loading branch information
Damyon Wiese committed Nov 10, 2016
1 parent 258d07d commit 6fe0b5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -1191,6 +1191,7 @@
$string['moreinfo'] = 'More info';
$string['moreinformation'] = 'More information about this error';
$string['moreprofileinfoneeded'] = 'Please tell us more about yourself';
$string['morenavigationlinks'] = 'More...';
$string['mostrecently'] = 'most recently';
$string['move'] = 'Move';
$string['movecoursemodule'] = 'Move resource';
Expand Down
4 changes: 2 additions & 2 deletions theme/boost/classes/output/core_renderer.php
Expand Up @@ -558,7 +558,7 @@ public function context_header_settings_menu() {

// We only add a list to the full settings menu if we didn't include every node in the short menu.
if ($skipped) {
$text = get_string('frontpagesettings');
$text = get_string('morenavigationlinks');
$url = new moodle_url('/course/admin.php', array('courseid' => $this->page->course->id));
$link = new action_link($url, $text, null, null, new pix_icon('t/edit', $text));
$menu->add_secondary_action($link);
Expand All @@ -572,7 +572,7 @@ public function context_header_settings_menu() {

// We only add a list to the full settings menu if we didn't include every node in the short menu.
if ($skipped) {
$text = get_string('courseadministration');
$text = get_string('morenavigationlinks');
$url = new moodle_url('/course/admin.php', array('courseid' => $this->page->course->id));
$link = new action_link($url, $text, null, null, new pix_icon('t/edit', $text));
$menu->add_secondary_action($link);
Expand Down

0 comments on commit 6fe0b5b

Please sign in to comment.