Skip to content

Commit

Permalink
MDL-19611 fixing regression - video icon disappeared
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 24, 2009
1 parent ff5fe31 commit 5a4ba49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/form/editor.php
Expand Up @@ -10,7 +10,7 @@
class MoodleQuickForm_editor extends HTML_QuickForm_element {
protected $_helpbutton = '';
protected $_options = array('subdirs'=>0, 'maxbytes'=>0, 'maxfiles'=>0, 'changeformat'=>0,
'context'=>null, 'noclean'=>0, 'trusttext'=>0);
'context'=>null, 'noclean'=>0, 'trusted'=>0);
protected $_values = array('text'=>null, 'format'=>null, 'itemid'=>null);

function MoodleQuickForm_editor($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
Expand Down
6 changes: 4 additions & 2 deletions mod/forum/post_form.php
Expand Up @@ -14,7 +14,9 @@ function definition() {
$coursecontext = $this->_customdata['coursecontext'];
$modcontext = $this->_customdata['modcontext'];
$forum = $this->_customdata['forum'];
$post = $this->_customdata['post']; // hack alert
$post = $this->_customdata['post'];
// TODO: add max files and max size support
$editoroptions = array('maxfiles' => EDITOR_UNLIMITED_FILES, 'trusted'=>trusttext_trusted($modcontext), 'context'=>$modcontext);

$mform->addElement('header', 'general', '');//fill in the data depending on page params
//later using set_data
Expand All @@ -23,7 +25,7 @@ function definition() {
$mform->addRule('subject', get_string('required'), 'required', null, 'client');
$mform->addRule('subject', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');

$mform->addElement('editor', 'message', get_string('message', 'forum'), null, array('maxfiles' => EDITOR_UNLIMITED_FILES));
$mform->addElement('editor', 'message', get_string('message', 'forum'), null, $editoroptions);
$mform->setType('message', PARAM_RAW);
$mform->addRule('message', get_string('required'), 'required', null, 'client');
$mform->setHelpButton('message', array('reading', 'writing', 'questions', 'richtext2'), false, 'editorhelpbutton');
Expand Down

0 comments on commit 5a4ba49

Please sign in to comment.