mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
navigation MDL-14632 Deprecate print_header menu argument and provide PAGE method
This commit is contained in:
parent
b7510c3aa8
commit
e120c61d24
7 changed files with 33 additions and 18 deletions
|
@ -2120,7 +2120,7 @@ function print_continue($link, $return = false) {
|
|||
* @return string|void If return=true then string else void
|
||||
*/
|
||||
function print_header($title='', $heading='', $navigation='', $focus='',
|
||||
$meta='', $cache=true, $button=' ', $menu='',
|
||||
$meta='', $cache=true, $button=' ', $menu=null,
|
||||
$usexml=false, $bodytags='', $return=false) {
|
||||
global $PAGE, $OUTPUT;
|
||||
|
||||
|
@ -2132,6 +2132,7 @@ function print_header($title='', $heading='', $navigation='', $focus='',
|
|||
$button = ' ';
|
||||
}
|
||||
$PAGE->set_button($button);
|
||||
$PAGE->set_headingmenu($menu);
|
||||
|
||||
// TODO $menu
|
||||
|
||||
|
@ -2146,7 +2147,7 @@ function print_header($title='', $heading='', $navigation='', $focus='',
|
|||
throw new coding_exception('The $bodytags parameter to print_header is no longer supported.');
|
||||
}
|
||||
|
||||
$output = $OUTPUT->header($menu);
|
||||
$output = $OUTPUT->header();
|
||||
|
||||
if ($return) {
|
||||
return $output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue