MDL-21198 fixed regression in last commit

This commit is contained in:
Petr Skoda 2010-01-02 13:23:43 +00:00
parent 8ae8bf8a14
commit 1739077160
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

@ -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);