Skip to content

Commit

Permalink
Merge branch 'MDL-26562-23' of git://github.com/vadimonus/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed May 23, 2012
2 parents 04b66cb + 5429460 commit 119e228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mod/forum/lang/en/forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@
$string['openmode0'] = 'No discussions, no replies';
$string['openmode1'] = 'No discussions, but replies are allowed';
$string['openmode2'] = 'Discussions and replies are allowed';
$string['overviewnumpostssince'] = 'posts since last login';
$string['overviewnumunread'] = 'total unread';
$string['overviewnumpostssince'] = '{$a} posts since last login';
$string['overviewnumunread'] = '{$a} total unread';
$string['page-mod-forum-x'] = 'Any forum module page';
$string['page-mod-forum-view'] = 'Forum module main page';
$string['page-mod-forum-discuss'] = 'Forum module discussion thread page';
Expand Down
6 changes: 2 additions & 4 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1380,8 +1380,6 @@ function forum_print_overview($courses,&$htmlarray) {
}

$strforum = get_string('modulename','forum');
$strnumunread = get_string('overviewnumunread','forum');
$strnumpostssince = get_string('overviewnumpostssince','forum');

foreach ($forums as $forum) {
$str = '';
Expand All @@ -1400,9 +1398,9 @@ function forum_print_overview($courses,&$htmlarray) {
$str .= '<div class="overview forum"><div class="name">'.$strforum.': <a title="'.$strforum.'" href="'.$CFG->wwwroot.'/mod/forum/view.php?f='.$forum->id.'">'.
$forum->name.'</a></div>';
$str .= '<div class="info"><span class="postsincelogin">';
$str .= $count.' '.$strnumpostssince."</span>";
$str .= get_string('overviewnumpostssince', 'forum', $count)."</span>";
if (!empty($showunread)) {
$str .= '<div class="unreadposts">'.$thisunread .' '.$strnumunread.'</div>';
$str .= '<div class="unreadposts">'.get_string('overviewnumunread', 'forum', $thisunread).'</div>';
}
$str .= '</div></div>';
}
Expand Down

0 comments on commit 119e228

Please sign in to comment.