Index: moodle/mod/lamslesson/mod_form.php =================================================================== diff -u -rc4b6d5f20c4543e14b4d8a2a1fa816de966e415a -rc38008e06c832aaf08e1bcb50577e26cbfc43420 --- moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision c4b6d5f20c4543e14b4d8a2a1fa816de966e415a) +++ moodle/mod/lamslesson/mod_form.php (.../mod_form.php) (revision c38008e06c832aaf08e1bcb50577e26cbfc43420) @@ -112,13 +112,13 @@ // Preview button $authorpreviewbutton .= html_writer::start_tag('span', array('id' => 'previewbutton', 'style' => 'visibility:hidden;', 'class' => 'yui-button yui-link-button')); $authorpreviewbutton .= html_writer::start_tag('span', array('class' => 'first-child')); - $authorpreviewbutton .= html_writer::link('#nogo', $openpreviewlabel, array('onclick' => js_writer::function_call('openPreview', array('1' => $previewurl, '2' => preview, '3' => 0)))); + $authorpreviewbutton .= html_writer::link('#nogo', $openpreviewlabel, array('onclick' => js_writer::function_call('openPreview', array('1' => $previewurl, '2' => 'preview', '3' => 0)))); $authorpreviewbutton .= html_writer::end_tag('span'); $authorpreviewbutton .= html_writer::end_tag('span'); //Authoring button $authorpreviewbutton .= html_writer::start_tag('span', array('id' => 'authorbutton', 'class' => 'yui-button yui-link-button')); $authorpreviewbutton .= html_writer::start_tag('span', array('class' => 'first-child')); - $authorpreviewbutton .= html_writer::link('#nogo', $openauthorlabel, array('onclick' => js_writer::function_call('openAuthor', array('1' => $authorurl, '2' => author, '3' => 0)))); + $authorpreviewbutton .= html_writer::link('#nogo', $openauthorlabel, array('onclick' => js_writer::function_call('openAuthor', array('1' => $authorurl, '2' => 'author', '3' => 0)))); $authorpreviewbutton .= html_writer::end_tag('span'); $authorpreviewbutton .= html_writer::end_tag('span'); $authorpreviewbutton .= html_writer::end_tag('div');