moodle_page: MDL-12212 more ->pagepaths to kill

This commit is contained in:
tjhunt
2009-05-06 08:43:51 +00:00
parent 753debd2ab
commit ad5d5997ed
12 changed files with 17 additions and 24 deletions
+4 -3
View File
@@ -185,12 +185,13 @@
$navlinksinstancename = array('name' => format_string($form->name, true), 'link' => "$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id", 'type' => 'activityinstance');
$CFG->pagepath = 'mod/'.$module->name;
$pagetype = 'mod-' . $module->name . '-';
if (!empty($type)) {
$CFG->pagepath .= '/'.$type;
$pagetype .= $type;
} else {
$CFG->pagepath .= '/mod';
$pagetype .= 'mod';
}
$PAGE->set_pagetype($pagetype);
} else {
print_error('invalidaction');
}