Permalink
Browse files

clarified comments and added some spacing.

  • Loading branch information...
1 parent a9c75a9 commit 6195e04a9d84904418aeb61de204d8c92a572b48 dhawes committed Oct 25, 2004
Showing with 7 additions and 8 deletions.
  1. +7 −8 blocks/moodleblock.class.php
@@ -35,19 +35,19 @@ function get_content() {
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 @@ function instance_config_print() {
}
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()));
}

0 comments on commit 6195e04

Please sign in to comment.