Skip to content

Commit

Permalink
Modified course page print_header function to accept more arguments. …
Browse files Browse the repository at this point in the history
…Needed for the AJAX course formats.
  • Loading branch information
vyshane committed Oct 24, 2006
1 parent a804689 commit b3ede2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ function user_is_editing() {

// This function prints out the common part of the page's header.
// You should NEVER print the header "by hand" in other code.
function print_header($title, $morebreadcrumbs = NULL) {
function print_header($title, $morebreadcrumbs=NULL, $meta='', $bodytags='') {
global $USER, $CFG;

$this->init_full();
Expand Down Expand Up @@ -406,7 +406,7 @@ function print_header($title, $morebreadcrumbs = NULL) {
$buttons = empty($morebreadcrumbs) ? $buttons : ' ';

print_header($title, $this->courserecord->fullname, $crumbtext,
'', '', true, $buttons, user_login_string($this->courserecord, $USER));
'', $meta, true, $buttons, user_login_string($this->courserecord, $USER), false, $bodytags);
}

// SELF-REPORTING SECTION
Expand Down

0 comments on commit b3ede2a

Please sign in to comment.