MDL-23395, go straight to page editing page when title is not empyt and forceformat is set
This commit is contained in:
+2
-1
@@ -45,7 +45,8 @@ $version = optional_param('version', -1, PARAM_INT);
|
||||
$attachments = optional_param('attachments', 0, PARAM_INT);
|
||||
$deleteuploads = optional_param('deleteuploads', 0, PARAM_RAW);
|
||||
|
||||
if (is_array($newcontent)) {
|
||||
$newconent = '';
|
||||
if (!empty($newcontent) && is_array($newcontent)) {
|
||||
$newcontent = $newcontent['text'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user