Blog entries publish state now defaults to site if possible, to avoid all those drafts! (yuk)

This commit is contained in:
moodler 2007-09-03 09:13:56 +00:00
parent d66790b782
commit 3a81da563b
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View 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'));