From: dhawes Date: Mon, 25 Oct 2004 03:30:48 +0000 (+0000) Subject: clarified comments and added some spacing. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6195e04a9d84904418aeb61de204d8c92a572b48;p=moodle.git clarified comments and added some spacing. --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 4d59f1995e..43b2aaa7b2 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -35,19 +35,19 @@ class MoodleBlock { return NULL; } function get_title() { - // Intentionally doesn't check if a title is set, for _test_self() + // Intentionally doesn't check if a title is set. This is already done in _self_test() return $this->title; } function get_content_type() { - // Intentionally doesn't check if a content_type is set, for _test_self() + // Intentionally doesn't check if a content_type is set. This is already done in _self_test() return $this->content_type; } function get_version() { - // Intentionally doesn't check if a version is set, for _test_self() + // Intentionally doesn't check if a version is set. This is already done in _self_test() return $this->version; } function get_header() { - // Intentionally doesn't check if a header is set, for _test_self() + // Intentionally doesn't check if a header is set. This is already done in _self_test() return $this->header; } function refresh_content() { @@ -314,12 +314,11 @@ class MoodleBlock { } global $CFG, $USER, $THEME; - if(is_file($CFG->dirroot.'/blocks/'. $this->name() .'/config_instance.html')) { + if(is_file($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html')) { print_simple_box_start('center', '', $THEME->cellheading); - include($CFG->dirroot.'/blocks/'. $this->name() .'/config_instance.html'); + include($CFG->dirroot .'/blocks/'. $this->name() .'/config_instance.html'); print_simple_box_end(); - } - else { + } else { notice(get_string('blockconfigbad'), str_replace('blockaction=', 'dummy=', qualified_me())); }