]> git.mjollnir.org Git - moodle.git/commitdiff
Blog entries publish state now defaults to site if possible, to avoid all those draft...
authormoodler <moodler>
Mon, 3 Sep 2007 09:13:56 +0000 (09:13 +0000)
committermoodler <moodler>
Mon, 3 Sep 2007 09:13:56 +0000 (09:13 +0000)
blog/edit.php
blog/edit_form.php

index 0ca93133e1101079ee1d0161d4be4d3818d0582b..1e17482f2c181c4748151625362d77eeadd91517 100755 (executable)
@@ -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;
index 9510100a9dff237c4eff791b857eda85903d5949..fdd8086680cfb384ce70985e9a34cb9aab9b56d6 100644 (file)
@@ -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'));