Skip to content

Commit fe76816

Browse files
INT-19097: Open Forums cannot be viewed with the French Language pack in 4.1
1 parent 516a3ff commit fe76816

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lang/en/hsuforum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@
736736
$string['inprivatereplyto'] = 'in private reply to';
737737
$string['options'] = 'Options';
738738
$string['articledateformat'] = '%l:%M%P %b %e, %Y';
739+
$string['userdateformat'] = '%l:%M%P %b %e, %Y';
739740
$string['postdeleted'] = 'Post deleted';
740741
$string['postcreated'] = 'Post created';
741742
$string['cannnotdeletesinglediscussion'] = 'Sorry, but you are not allowed to delete that discussion!';

renderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function discussion($cm, $discussion, $post, $fullthread, array $posts =
340340
if (!property_exists($discussion, 'unread') or empty($discussion->unread)) {
341341
$discussion->unread = '-';
342342
}
343-
$format = get_string('articledateformat', 'hsuforum');
343+
$format = get_string('userdateformat', 'hsuforum');
344344

345345
$groups = groups_get_all_groups($course->id, 0, $cm->groupingid);
346346
$group = '';
@@ -491,7 +491,7 @@ public function post($cm, $discussion, $post, $canreply = false, $parent = null,
491491
$data->fullname = $postuser->fullname;
492492
$data->subject = property_exists($post, 'breadcrumb') ? $post->breadcrumb : $this->raw_post_subject($post);
493493
$data->message = $this->post_message($post, $cm, $search);
494-
$data->created = userdate($post->created, get_string('articledateformat', 'hsuforum'));
494+
$data->created = userdate($post->created, get_string('userdateformat', 'hsuforum'));
495495
$data->rawcreated = $post->created;
496496
$data->privatereply = $post->privatereply;
497497
$data->imagesrc = $postuser->user_picture->get_url($this->page)->out();

0 commit comments

Comments
 (0)