Skip to content

Commit

Permalink
MDL-43521 block_admin_bookmarks: Site admin node is of type TYPE_SITE…
Browse files Browse the repository at this point in the history
…_ADMIN

Since 2.6 Site admin node is of type TYPE_SITE_ADMIN, previously it was TYPE_SETTING
  • Loading branch information
Rajesh Taneja committed Jan 3, 2014
1 parent e71a533 commit 3db84ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/admin_bookmarks/block_admin_bookmarks.php
Expand Up @@ -107,7 +107,7 @@ function get_content() {

$this->content->footer = '';
$this->page->settingsnav->initialise();
$node = $this->page->settingsnav->get('root', navigation_node::TYPE_SETTING);
$node = $this->page->settingsnav->get('root', navigation_node::TYPE_SITE_ADMIN);
if (!$node || !$node->contains_active_node()) {
return $this->content;
}
Expand Down

0 comments on commit 3db84ae

Please sign in to comment.