Skip to content

Commit

Permalink
MDL-8863 Initial page field was disabled when there were no entries i…
Browse files Browse the repository at this point in the history
…n the wiki, making it useless. It is now always enabled
  • Loading branch information
nicolasconnault committed Nov 27, 2007
1 parent 98ac187 commit 45660d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mod/wiki/mod_form.php
Expand Up @@ -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');

Expand Down

0 comments on commit 45660d4

Please sign in to comment.