MDL-50225 core: replace usages of print_textarea()
This commit is contained in:
@@ -41,9 +41,13 @@ $pageid = required_param('pageid', PARAM_TEXT);
|
||||
$action = optional_param('action', '', PARAM_ALPHANUMEXT);
|
||||
$id = optional_param('id', 0, PARAM_INT);
|
||||
$commentid = optional_param('commentid', 0, PARAM_INT);
|
||||
$newcontent = optional_param('newcontent', '', PARAM_CLEANHTML);
|
||||
$newcontent = optional_param_array('newcontent', '', PARAM_CLEANHTML);
|
||||
$confirm = optional_param('confirm', 0, PARAM_BOOL);
|
||||
|
||||
if ($newcontent) {
|
||||
$newcontent = $newcontent['text'];
|
||||
}
|
||||
|
||||
if (!$page = wiki_get_page($pageid)) {
|
||||
print_error('incorrectpageid', 'wiki');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user