mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
MDL-25002, fixed wiki preview
This commit is contained in:
parent
55c5882639
commit
980c237e6c
2 changed files with 24 additions and 7 deletions
|
@ -42,7 +42,6 @@ $contentformat = optional_param('contentformat', '', PARAM_ALPHA);
|
|||
$option = optional_param('editoption', '', PARAM_TEXT);
|
||||
$section = optional_param('section', "", PARAM_TEXT);
|
||||
$version = optional_param('version', -1, PARAM_INT);
|
||||
$newcontent = optional_param('newcontent', '', PARAM_CLEANHTML);
|
||||
$attachments = optional_param('attachments', 0, PARAM_INT);
|
||||
$deleteuploads = optional_param('deleteuploads', 0, PARAM_RAW);
|
||||
|
||||
|
@ -90,7 +89,6 @@ if ($option == get_string('save', 'wiki')) {
|
|||
}
|
||||
$wikipage = new page_wiki_preview($wiki, $subwiki, $cm);
|
||||
$wikipage->set_page($page);
|
||||
$wikipage->set_newcontent($newcontent);
|
||||
} else {
|
||||
if ($option == get_string('cancel')) {
|
||||
//delete lock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue