mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-41933' of https://github.com/merrill-oakland/moodle
This commit is contained in:
commit
9b2fdfab44
@ -100,6 +100,7 @@ $string['configmaxbytes'] = 'Default maximum size for all forum attachments on t
|
||||
$string['configoldpostdays'] = 'Number of days old any post is considered read.';
|
||||
$string['configreplytouser'] = 'When a forum post is mailed out, should it contain the user\'s email address so that recipients can reply personally rather than via the forum? Even if set to \'Yes\' users can choose in their profile to keep their email address secret.';
|
||||
$string['configshortpost'] = 'Any post under this length (in characters not including HTML) is considered short (see below).';
|
||||
$string['configtrackingtype'] = 'Default setting for read tracking.';
|
||||
$string['configtrackreadposts'] = 'Set to \'yes\' if you want to track read/unread for each user.';
|
||||
$string['configusermarksread'] = 'If \'yes\', the user must manually mark a post as read. If \'no\', when the post is viewed it is marked as read.';
|
||||
$string['confirmsubscribe'] = 'Do you really want to subscribe to forum \'{$a}\'?';
|
||||
|
@ -89,6 +89,7 @@ class mod_forum_mod_form extends moodleform_mod {
|
||||
$options[FORUM_TRACKING_ON] = get_string('trackingon', 'forum');
|
||||
$mform->addElement('select', 'trackingtype', get_string('trackingtype', 'forum'), $options);
|
||||
$mform->addHelpButton('trackingtype', 'trackingtype', 'forum');
|
||||
$mform->setDefault('trackingtype', $CFG->forum_trackingtype);
|
||||
|
||||
if ($CFG->enablerssfeeds && isset($CFG->forum_enablerssfeeds) && $CFG->forum_enablerssfeeds) {
|
||||
//-------------------------------------------------------------------------------
|
||||
|
@ -57,6 +57,14 @@ if ($ADMIN->fulltree) {
|
||||
$settings->add(new admin_setting_configtext('forum_maxattachments', get_string('maxattachments', 'forum'),
|
||||
get_string('configmaxattachments', 'forum'), 9, PARAM_INT));
|
||||
|
||||
// Default Read Tracking setting.
|
||||
$options = array();
|
||||
$options[FORUM_TRACKING_OPTIONAL] = get_string('trackingoptional', 'forum');
|
||||
$options[FORUM_TRACKING_OFF] = get_string('trackingoff', 'forum');
|
||||
$options[FORUM_TRACKING_ON] = get_string('trackingon', 'forum');
|
||||
$settings->add(new admin_setting_configselect('forum_trackingtype', get_string('trackingtype', 'forum'),
|
||||
get_string('configtrackingtype', 'forum'), FORUM_TRACKING_OPTIONAL, $options));
|
||||
|
||||
// Default whether user needs to mark a post as read
|
||||
$settings->add(new admin_setting_configcheckbox('forum_trackreadposts', get_string('trackforum', 'forum'),
|
||||
get_string('configtrackreadposts', 'forum'), 1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user