From 4e60e777a31890338c8f55e9fe257c1190c9aa7f Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 1 Jun 2004 10:45:12 +0000 Subject: [PATCH] As per Gustav's suggestion in bug 1507, changing the default behavior for blocks to make them available in the site page, too. Also, minor spelling correction. --- blocks/moodleblock.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 4450a434791..2a915cefd99 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -230,14 +230,14 @@ class MoodleBlock { } function applicable_formats() { // Default case: the block can be used in all course types - return COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS | COURSE_FORMAT_SOCIAL; + return COURSE_FORMAT_WEEKS | COURSE_FORMAT_TOPICS | COURSE_FORMAT_SOCIAL | COURSE_FORMAT_SITE; } function preferred_width() { // Default case: the block wants to be 180 pixels wide return 180; } function hide_header() { - //Default, false--> the header is showed + //Default, false--> the header is shown return false; } function html_attributes() {