mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
MDL-28163 custom site frontpage support
This commit is contained in:
parent
81f8e0f8a0
commit
8275eab842
@ -88,8 +88,11 @@
|
||||
$PAGE->set_heading($SITE->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
/// Print Section
|
||||
if ($SITE->numsections > 0) {
|
||||
/// Print Section or custom info
|
||||
if (!empty($CFG->customfrontpageinclude)) {
|
||||
include($CFG->customfrontpageinclude);
|
||||
|
||||
} else if ($SITE->numsections > 0) {
|
||||
|
||||
if (!$section = $DB->get_record('course_sections', array('course'=>$SITE->id, 'section'=>1))) {
|
||||
$DB->delete_records('course_sections', array('course'=>$SITE->id, 'section'=>1)); // Just in case
|
||||
|
Loading…
x
Reference in New Issue
Block a user