Commit 337b43a7 authored by Petr Skoda's avatar Petr Skoda
Browse files

CONTRIB-2970 header printed too early

Credit goes to Sam Chaffee.
parent 311d8d72
...@@ -125,8 +125,6 @@ $PAGE->set_heading(format_string($course->fullname)); ...@@ -125,8 +125,6 @@ $PAGE->set_heading(format_string($course->fullname));
book_add_fake_block($chapters, $chapter, $book, $cm, $edit); book_add_fake_block($chapters, $chapter, $book, $cm, $edit);
echo $OUTPUT->header();
/// prepare chapter navigation icons /// prepare chapter navigation icons
$previd = null; $previd = null;
$nextid = null; $nextid = null;
...@@ -169,6 +167,8 @@ if ($nextid) { ...@@ -169,6 +167,8 @@ if ($nextid) {
// Book display HTML code // Book display HTML code
// ===================================================== // =====================================================
echo $OUTPUT->header();
// upper nav // upper nav
echo '<div class="navtop">'.$chnavigation.'</div>'; echo '<div class="navtop">'.$chnavigation.'</div>';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment