From: tjhunt Date: Thu, 25 Sep 2008 07:12:46 +0000 (+0000) Subject: MDL-16676 All references to the text.html and emoticons.html files need to be updated... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=80f69dc0ee2483fa911ad261198de922188b22cb;p=moodle.git MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html --- diff --git a/admin/uploaduser_form.php b/admin/uploaduser_form.php index 79559a68cb..3a2cb84027 100644 --- a/admin/uploaduser_form.php +++ b/admin/uploaduser_form.php @@ -212,7 +212,7 @@ class admin_uploaduser_form2 extends moodleform { $mform->addElement('htmleditor', 'description', get_string('userdescription')); $mform->setType('description', PARAM_CLEAN); - $mform->setHelpButton('description', array('text', get_string('helptext'))); + $mform->setHelpButton('description', array('text2', get_string('helptext'))); $mform->setAdvanced('description'); $mform->addElement('text', 'url', get_string('webpage'), 'maxlength="255" size="50"'); diff --git a/course/edit_form.php b/course/edit_form.php index b9e78aff51..d72f72cf71 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -100,7 +100,7 @@ class course_edit_form extends moodleform { $mform->setType('idnumber', PARAM_RAW); $mform->addElement('htmleditor','summary', get_string('summary'), array('rows'=> '10', 'cols'=>'65')); - $mform->setHelpButton('summary', array('text', get_string('helptext')), true); + $mform->setHelpButton('summary', array('text2', get_string('helptext')), true); $mform->setType('summary', PARAM_RAW); $courseformats = get_list_of_plugins('course/format'); diff --git a/course/request_form.php b/course/request_form.php index 3654969ff3..a7637ac3a1 100644 --- a/course/request_form.php +++ b/course/request_form.php @@ -17,7 +17,7 @@ class course_request_form extends moodleform { $mform->addElement('htmleditor', 'summary', get_string('summary'), array('rows'=>'15', 'cols'=>'50')); $mform->addRule('summary', get_string('missingsummary'), 'required', null, 'client'); $mform->setType('summary', PARAM_RAW); - $mform->setHelpButton('summary', array('text', get_string('helptext'))); + $mform->setHelpButton('summary', array('text2', get_string('helptext'))); $mform->addElement('textarea', 'reason', get_string('courserequestreason'), array('rows'=>'15', 'cols'=>'50')); diff --git a/lib/form/editorhelp.php b/lib/form/editorhelp.php index 4b8e9167c0..a4cc3b71a1 100644 --- a/lib/form/editorhelp.php +++ b/lib/form/editorhelp.php @@ -16,13 +16,13 @@ for ($i=1; ; $i++){ $topics[$i] = helplink('questions', get_string('helpquestions')); break; case 'emoticons' : - $topics[$i] = helplink('emoticons', get_string('helpemoticons')); + $topics[$i] = helplink('emoticons2', get_string('helpemoticons')); break; case 'richtext' : - $topics[$i] = helplink('richtext', get_string('helprichtext')); + $topics[$i] = helplink('richtext2', get_string('helprichtext')); break; case 'text' : - $topics[$i] = helplink('text', get_string('helptext')); + $topics[$i] = helplink('text2', get_string('helptext')); break; default : print_error('unknownhelp', '', '', $item); diff --git a/lib/form/htmleditor.php b/lib/form/htmleditor.php index f92855eaf8..0eea8397de 100644 --- a/lib/form/htmleditor.php +++ b/lib/form/htmleditor.php @@ -47,11 +47,11 @@ class MoodleQuickForm_htmleditor extends MoodleQuickForm_textarea{ function setHelpButton($helpbuttonargs, $function='helpbutton'){ if (!$this->_canUseHtmlEditor){ if ('editorhelpbutton' == $function){ - $key = array_search('richtext', $helpbuttonargs); + $key = array_search('richtext2', $helpbuttonargs); if ($key !== FALSE){ array_splice($helpbuttonargs, $key, 1, array('text', 'emoticons')); } - } elseif ('helpbutton' == $function && $helpbuttonargs[0] == 'richtext' && ((!isset($helpbuttonargs[2])) || $helpbuttonargs[2] == 'moodle')){ + } elseif ('helpbutton' == $function && $helpbuttonargs[0] == 'richtext2' && ((!isset($helpbuttonargs[2])) || $helpbuttonargs[2] == 'moodle')){ //replace single 'richtext' help button with text and emoticon button when htmleditor off. return $this->setHelpButton(array('text', 'emoticons'), 'editorhelpbutton'); } diff --git a/user/editlib.php b/user/editlib.php index 45e975e52c..c9c1a596fc 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -230,7 +230,7 @@ function useredit_shared_definition(&$mform) { $mform->addElement('htmleditor', 'description', get_string('userdescription')); $mform->setType('description', PARAM_CLEAN); - $mform->setHelpButton('description', array('text', get_string('helptext'))); + $mform->setHelpButton('description', array('text2', get_string('helptext'))); if (!empty($CFG->gdversion)) { $mform->addElement('header', 'moodle_picture', get_string('pictureof'));//TODO: Accessibility fix fieldset legend diff --git a/user/profile/definelib.php b/user/profile/definelib.php index afd0791fcd..f94749d77e 100644 --- a/user/profile/definelib.php +++ b/user/profile/definelib.php @@ -32,7 +32,7 @@ class profile_define_base { $form->setType('name', PARAM_MULTILANG); $form->addElement('htmleditor', 'description', get_string('profiledescription', 'admin')); - $form->setHelpButton('description', array('text', get_string('helptext'))); + $form->setHelpButton('description', array('text2', get_string('helptext'))); $form->addElement('selectyesno', 'required', get_string('profilerequired', 'admin'));