From 8275eab8423b602d65cd6bb8c7e54fe762e8069e Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 3 Jul 2011 15:02:46 +0200 Subject: [PATCH] MDL-28163 custom site frontpage support --- index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 7c3472d464b..747bb049bdd 100644 --- a/index.php +++ b/index.php @@ -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 -- 2.36.1