Skip to content

Commit

Permalink
Merge branch 'master-MDL-56973' of https://github.com/fwsl/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed May 22, 2017
2 parents da2959f + 2e241fe commit 13a1e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/wiki/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
// 'create' action will create a new page in db, and redirect to
// page editing page.
$action = optional_param('action', 'new', PARAM_TEXT);
// The title of the new page, can be empty
$title = optional_param('title', get_string('newpage', 'wiki'), PARAM_TEXT);
$wid = optional_param('wid', 0, PARAM_INT);
$swid = optional_param('swid', 0, PARAM_INT);
$group = optional_param('group', 0, PARAM_INT);
Expand Down Expand Up @@ -86,6 +84,8 @@

require_login($course, true, $cm);

// The title of the new page, cannot be empty.
$title = optional_param('title', get_string('newpage', 'wiki'), PARAM_TEXT);
$wikipage = new page_wiki_create($wiki, $subwiki, $cm);

if (!empty($swid)) {
Expand Down

0 comments on commit 13a1e8b

Please sign in to comment.