Skip to content
Browse files

MDL-8863 Initial page field was disabled when there were no entries i…

…n the wiki, making it useless. It is now always enabled
  • Loading branch information...
1 parent e489cc2 commit 1b1bd5929b55889c46742093872eec4d581e482d nicolasconnault committed
Showing with 1 addition and 5 deletions.
  1. +1 −5 mod/wiki/mod_form.php
View
6 mod/wiki/mod_form.php
@@ -78,11 +78,7 @@ function definition() {
$mform->setType('pagename', PARAM_NOTAGS);
$mform->setAdvanced('pagename');
- if ($wikihasentries){
- $mform->addElement('choosecoursefile', 'initialcontent', get_string('initialcontent', 'wiki'));
- } else {
- $mform->addElement('static', 'initialcontent', get_string('initialcontent', 'wiki'));
- }
+ $mform->addElement('choosecoursefile', 'initialcontent', get_string('initialcontent', 'wiki'));
$mform->setHelpButton('initialcontent', array('initialcontent', get_string('initialcontent', 'wiki'), 'wiki'));
$mform->setAdvanced('initialcontent');

0 comments on commit 1b1bd59

Please sign in to comment.
Something went wrong with that request. Please try again.