From: jamiesensei Date: Wed, 15 Nov 2006 07:49:43 +0000 (+0000) Subject: little bit of clean up. removed extra global var and format element helpbutton is... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=373503035f48e46f72cb62e7d9fc128dc418495e;p=moodle.git little bit of clean up. removed extra global var and format element helpbutton is now included in element definition. --- diff --git a/mod/forum/post_form.php b/mod/forum/post_form.php index 46b59ccda4..73334c2fe3 100644 --- a/mod/forum/post_form.php +++ b/mod/forum/post_form.php @@ -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)) { diff --git a/mod/journal/mod_form.php b/mod/journal/mod_form.php index 3d67966db0..7320b5e645 100644 --- a/mod/journal/mod_form.php +++ b/mod/journal/mod_form.php @@ -4,7 +4,7 @@ class journal_mod_form extends moodleform_mod { function definition() { - global $CFG, $COURSE; + global $COURSE; $mform =& $this->_form; $renderer =& $mform->defaultRenderer();