Browse files

applying supplied patch to MDL-9051, missing $CFG->forum_enabletimedp…

  • Loading branch information...
toyomoyo committed Jun 26, 2007
1 parent 8969caa commit 6c709360f59164900506b84fc4936eb80db1eb2d
Showing with 18 additions and 0 deletions.
  1. +1 −0 lang/en_utf8/forum.php
  2. +17 −0 mod/forum/config.html
@@ -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)';
@@ -170,6 +170,23 @@
+<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>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>

0 comments on commit 6c70936

Please sign in to comment.