mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-21198 fixed regression in last commit
This commit is contained in:
parent
8ae8bf8a14
commit
1739077160
@ -159,7 +159,10 @@ class block_global_navigation_tree extends block_tree {
|
||||
// Grab the items to display
|
||||
$this->content->items = array($this->page->navigation);
|
||||
|
||||
$this->content->footer .= $OUTPUT->action_icon($this->page->url, get_string('reload'), array('class'=>'customcommand'), 't/reload');
|
||||
$reloadlink = new html_link(new moodle_url($this->page->url, array('regenerate'=>'navigation')));
|
||||
$reloadlink->add_class('customcommand');
|
||||
|
||||
$this->content->footer .= $OUTPUT->action_icon($reloadlink, get_string('reload'), 't/reload');
|
||||
|
||||
if (empty($this->config->enablesidebarpopout) || $this->config->enablesidebarpopout == 'yes') {
|
||||
user_preference_allow_ajax_update('nav_in_tab_panel_globalnav'.block_global_navigation_tree::$navcount, PARAM_INT);
|
||||
|
@ -140,9 +140,9 @@ class block_settings_navigation_tree extends block_tree {
|
||||
$this->content->footer = '';
|
||||
}
|
||||
|
||||
$reloadicon = $OUTPUT->action_icon($this->page->url, get_string('reload'), 't/reload', array('class'=>'customcommand'));
|
||||
|
||||
$this->content->footer .= $reloadicon;
|
||||
$reloadlink = new html_link(new moodle_url($this->page->url, array('regenerate'=>'navigation')));
|
||||
$reloadlink->add_class('customcommand');
|
||||
$this->content->footer .= $OUTPUT->action_icon($reloadlink, get_string('reload'), 't/reload');
|
||||
|
||||
if (!empty($this->config->enablesidebarpopout) && $this->config->enablesidebarpopout == 'yes') {
|
||||
user_preference_allow_ajax_update('nav_in_tab_panel_settingsnav'.block_settings_navigation_tree::$navcount, PARAM_INT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user