mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
Merge branch 'w26_MDL-28163_m22_customfront' of git://github.com/skodak/moodle
This commit is contained in:
commit
d9aa768139
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue