Skip to content

Commit

Permalink
applying supplied patch to MDL-9051, missing $CFG->forum_enabletimedp…
Browse files Browse the repository at this point in the history
…osts
  • Loading branch information
toyomoyo committed Jun 26, 2007
1 parent 8969caa commit 6c70936
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en_utf8/forum.php
Expand Up @@ -24,6 +24,7 @@
$string['configcleanreadtime'] = 'The hour of the day to clean old posts from the \'read\' table.';
$string['configdisplaymode'] = 'The default display mode for discussions if one isn\'t set.';
$string['configenablerssfeeds'] = 'This switch will enable the possibility of RSS feeds for all forums. You will still need to turn feeds on manually in the settings for each forum.';
$string['configenabletimedposts'] = 'Set to \'yes\' if you want to allow setting of display periods when posting a new forum discussion (Experimental as not yet fully tested)';
$string['configlongpost'] = 'Any post over this length (in characters not including HTML) is considered long. Posts displayed on the site front page, social format course pages, or user profiles are shortened to a natural break somewhere between the forum_shortpost and forum_longpost values.';
$string['configmanydiscussions'] = 'Maximum number of discussions shown in a forum per page';
$string['configmaxbytes'] = 'Default maximum size for all forum attachments on the site (subject to course limits and other local settings)';
Expand Down
17 changes: 17 additions & 0 deletions mod/forum/config.html
Expand Up @@ -170,6 +170,23 @@
</td>
</tr>

<tr valign="top">
<td align="right">forum_enabletimedposts:</td>
<td>
<?php
unset($options);
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "forum_enabletimedposts", $CFG->forum_enabletimedposts, "", "", "");
?>
</td>
<td>
<?php
print_string("configenabletimedposts","forum");
?>
</td>
</tr>

<tr>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
Expand Down

0 comments on commit 6c70936

Please sign in to comment.