mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
merged fix for MDL-6549, fix for wrong publish to menu
This commit is contained in:
parent
b7cec865f4
commit
c345209c19
14
blog/lib.php
14
blog/lib.php
@ -259,9 +259,17 @@
|
||||
global $CFG;
|
||||
|
||||
// everyone gets draft access
|
||||
$options = array ( 'draft' => get_string('publishtonoone', 'blog') );
|
||||
$options['site'] = get_string('publishtosite', 'blog');
|
||||
$options['public'] = get_string('publishtoworld', 'blog');
|
||||
if ($CFG->bloglevel >= BLOG_USER_LEVEL) {
|
||||
$options = array ( 'draft' => get_string('publishtonoone', 'blog') );
|
||||
}
|
||||
|
||||
if ($CFG->bloglevel > BLOG_USER_LEVEL) {
|
||||
$options['site'] = get_string('publishtosite', 'blog');
|
||||
}
|
||||
|
||||
if ($CFG->bloglevel >= BLOG_GLOBAL_LEVEL) {
|
||||
$options['public'] = get_string('publishtoworld', 'blog');
|
||||
}
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user