mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
Blog entries publish state now defaults to site if possible, to avoid all those drafts! (yuk)
This commit is contained in:
parent
d66790b782
commit
3a81da563b
@ -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;
|
||||
|
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user