Skip to content
Browse files

MDL-21624 - add 'maincontent' handler

  • Loading branch information...
1 parent fd2aa40 commit 29ba64e5f9a3b15d35d6e5304c7b4eccbd52e244 Rossiani Wijaya committed Jun 23, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/outputrenderers.php
View
4 lib/outputrenderers.php
@@ -588,7 +588,7 @@ public function header() {
$this->opencontainers->push('header/footer', $footer);
$this->page->set_state(moodle_page::STATE_IN_BODY);
- return $header . $this->skip_link_target();
+ return $header . $this->skip_link_target('maincontent');
}
/**
@@ -2166,7 +2166,7 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf
}
$this->page->set_url('/'); // no url
//$this->page->set_pagelayout('base'); //TODO: MDL-20676 blocks on error pages are weird, unfortunately it somehow detect the pagelayout from URL :-(
- $this->page->set_title(get_string('error'));
+ $this->page->set_title(get_string('error'));
$output .= $this->header();
}

0 comments on commit 29ba64e

Please sign in to comment.
Something went wrong with that request. Please try again.