mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-23310 fixed undefined page layouts
This commit is contained in:
parent
835d78ff9e
commit
897aa80c05
4 changed files with 7 additions and 7 deletions
|
@ -44,7 +44,7 @@ if ($id !== null) {
|
|||
}
|
||||
$PAGE->set_url($url);
|
||||
$PAGE->set_context($context);
|
||||
$PAGE->set_pagelayout('general');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
$returnurl = new moodle_url('/blog/external_blogs.php');
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ $blogs = $DB->get_records('blog_external', array('userid' => $USER->id));
|
|||
|
||||
$PAGE->set_heading("$SITE->shortname: $strblogs: $strexternalblogs", $SITE->fullname);
|
||||
$PAGE->set_title("$SITE->shortname: $strblogs: $strexternalblogs");
|
||||
$PAGE->set_pagelayout('general');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($strexternalblogs, 2);
|
||||
|
|
|
@ -648,7 +648,7 @@ function blog_get_headers() {
|
|||
$course = $DB->get_record('course', array('id' => $group->courseid));
|
||||
}
|
||||
|
||||
$PAGE->set_pagelayout('general');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
if (!empty($modid) && $CFG->useblogassociations && has_capability('moodle/blog:associatemodule', $sitecontext)) { // modid always overrides courseid, so the $course object may be reset here
|
||||
$headers['filters']['module'] = $modid;
|
||||
|
|
|
@ -53,7 +53,7 @@ if ($groupid !== null) {
|
|||
}
|
||||
|
||||
$PAGE->set_url($url);
|
||||
$PAGE->set_pagelayout('general');
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
if ($courseid == SITEID) {
|
||||
require_login();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue