Permalink
Browse files

MDL-28163 custom site frontpage support

  • Loading branch information...
1 parent 14cf05a commit dd402d1fa3d8b606eb39aa189c80b1b4686aaff4 @skodak skodak committed with stronk7 Jul 3, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 index.php
View
@@ -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

0 comments on commit dd402d1

Please sign in to comment.