little bit of clean up. removed extra global var and format element helpbutton is now included in element definition.

This commit is contained in:
jamiesensei
2006-11-15 07:49:43 +00:00
parent 5f649aaa79
commit 373503035f
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -35,7 +35,6 @@ class forum_post_form extends moodleform {
$mform->addRule('message', get_string('required'), 'required', null, 'client');
$mform->addElement('format', 'format', get_string('format'));
$mform->setHelpButton('format', array('textformat', get_string('helpformatting')));
if (isset($forum->id) && forum_is_forcesubscribed($forum->id)) {
+1 -1
View File
@@ -4,7 +4,7 @@ class journal_mod_form extends moodleform_mod {
function definition() {
global $CFG, $COURSE;
global $COURSE;
$mform =& $this->_form;
$renderer =& $mform->defaultRenderer();