Skip to content

Commit

Permalink
MDL-56973 wiki: New page title readonly after changing course language
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsl committed May 19, 2017
1 parent 590292d commit 2e241fe
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 2e241fe

Please sign in to comment.