From: nicolasconnault Date: Tue, 27 Nov 2007 13:30:57 +0000 (+0000) Subject: MDL-8863 Initial page field was disabled when there were no entries in the wiki,... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=45660d45f392433a707e77792de7b6bbf8380c72;p=moodle.git MDL-8863 Initial page field was disabled when there were no entries in the wiki, making it useless. It is now always enabled --- diff --git a/mod/wiki/mod_form.php b/mod/wiki/mod_form.php index 68290ec538..80bebbebcf 100644 --- a/mod/wiki/mod_form.php +++ b/mod/wiki/mod_form.php @@ -78,11 +78,7 @@ class mod_wiki_mod_form extends moodleform_mod { $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');