From: tjhunt <tjhunt>
Date: Wed, 6 May 2009 09:00:58 +0000 (+0000)
Subject: moodle_page: MDL-12212 Unbreak home page when editing is on
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=60dfb02a02501aca6d11c4aa99923dcaa18d98fa;p=moodle.git

moodle_page: MDL-12212 Unbreak home page when editing is on
---

diff --git a/lib/pagelib.php b/lib/pagelib.php
index b2d5b392c3..f1159dc87a 100644
--- a/lib/pagelib.php
+++ b/lib/pagelib.php
@@ -710,7 +710,8 @@ function page_map_class($type, $classname = NULL) {
 
     if ($mappings === NULL) {
         $mappings = array(
-            PAGE_COURSE_VIEW => 'page_course'
+            PAGE_COURSE_VIEW => 'page_course',
+            'site-index' => 'page_course'
         );
     }