From 45660d45f392433a707e77792de7b6bbf8380c72 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 27 Nov 2007 13:30:57 +0000 Subject: [PATCH] MDL-8863 Initial page field was disabled when there were no entries in the wiki, making it useless. It is now always enabled --- mod/wiki/mod_form.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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'); -- 2.39.5