mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
enrol MDL-19795 Upgraded print_header and build_navigation calls to OUTPUT/PAGE equivilants
This commit is contained in:
parent
15ca5e5e0d
commit
01d082fa17
7 changed files with 52 additions and 49 deletions
|
@ -9,13 +9,13 @@ if (!$site = get_site()) {
|
|||
|
||||
/// get language strings
|
||||
$str = get_strings(array('enrolments', 'users', 'administration', 'settings'));
|
||||
$navlinks = array();
|
||||
$navlinks[] = array('name' => $str->administration, 'link' => "../../$CFG->admin/index.php", 'type' => 'misc');
|
||||
$navlinks[] = array('name' => $str->enrolments, 'link' => null, 'type' => 'misc');
|
||||
$navlinks[] = array('name' => 'IMS import', 'link' => null, 'type' => 'misc');
|
||||
$navigation = build_navigation($navlinks);
|
||||
|
||||
print_header("$site->shortname: $str->enrolments", $site->fullname, $navigation);
|
||||
$PAGE->set_title("$site->shortname: $str->enrolments");
|
||||
$PAGE->set_heading($site->fullname);
|
||||
$PAGE->navbar->add($str->administration, new moodle_url($CFG->wwwroot.'/'.$CFG->admin.'/index.php'));
|
||||
$PAGE->navbar->add($str->enrolments);
|
||||
$PAGE->navbar->add('IMS import');
|
||||
echo $OUTPUT->header();
|
||||
|
||||
require_once('enrol.php');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue