From: moodler Date: Mon, 3 Sep 2007 09:13:56 +0000 (+0000) Subject: Blog entries publish state now defaults to site if possible, to avoid all those draft... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3a81da563bfbedce0622fffbf269bbbabd40d4e3;p=moodle.git Blog entries publish state now defaults to site if possible, to avoid all those drafts! (yuk) --- diff --git a/blog/edit.php b/blog/edit.php index 0ca93133e1..1e17482f2c 100755 --- a/blog/edit.php +++ b/blog/edit.php @@ -102,7 +102,7 @@ if ($blogeditform->is_cancelled()){ switch ($action) { case 'add': // prepare new empty form - $post->publishstate = 'draft'; + $post->publishstate = 'site'; $strformheading = get_string('addnewentry', 'blog'); $post->action = $action; break; diff --git a/blog/edit_form.php b/blog/edit_form.php index 9510100a9d..fdd8086680 100644 --- a/blog/edit_form.php +++ b/blog/edit_form.php @@ -32,7 +32,6 @@ class blog_edit_form extends moodleform { $mform->addElement('select', 'publishstate', get_string('publishto', 'blog'), blog_applicable_publish_states()); $mform->setHelpButton('publishstate', array('publish_state', get_string('helppublish', 'blog'), 'blog')); - if (!empty($CFG->usetags)) { $mform->addElement('header', 'tagshdr', get_string('tags', 'blog'));