Skip to content

Commit

Permalink
clarified comments and added some spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawes committed Oct 25, 2004
1 parent a9c75a9 commit 6195e04
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions blocks/moodleblock.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ function get_content() {
return NULL; return NULL;
} }
function get_title() { 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; return $this->title;
} }
function get_content_type() { 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; return $this->content_type;
} }
function get_version() { 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; return $this->version;
} }
function get_header() { 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; return $this->header;
} }
function refresh_content() { function refresh_content() {
Expand Down Expand Up @@ -314,12 +314,11 @@ function instance_config_print() {
} }
global $CFG, $USER, $THEME; 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); 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(); print_simple_box_end();
} } else {
else {
notice(get_string('blockconfigbad'), str_replace('blockaction=', 'dummy=', qualified_me())); notice(get_string('blockconfigbad'), str_replace('blockaction=', 'dummy=', qualified_me()));
} }


Expand Down

0 comments on commit 6195e04

Please sign in to comment.