mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-50430 forum: Add number of subscribers to forum subscriber list
This commit is contained in:
parent
57739a72cb
commit
54cf94390b
1
mod/forum/lang/en/deprecated.txt
Normal file
1
mod/forum/lang/en/deprecated.txt
Normal file
@ -0,0 +1 @@
|
||||
subscribersto,mod_forum
|
@ -462,7 +462,7 @@ $string['subscribeenrolledonly'] = 'Sorry, only enrolled users are allowed to su
|
||||
$string['subscribed'] = 'Subscribed';
|
||||
$string['subscribenone'] = 'Unsubscribe everyone from this forum';
|
||||
$string['subscribers'] = 'Subscribers';
|
||||
$string['subscribersto'] = 'Subscribers to \'{$a}\'';
|
||||
$string['subscriberstowithcount'] = 'Subscribers to "{$a->name}" ({$a->count})';
|
||||
$string['subscribestart'] = 'Send me notifications of new posts in this forum';
|
||||
$string['subscribestop'] = 'I don\'t want to be notified of new posts in this forum';
|
||||
$string['subscription'] = 'Subscription';
|
||||
@ -518,3 +518,6 @@ $string['warnformorepost'] = 'Warning! There is more than one discussion in this
|
||||
$string['yournewquestion'] = 'Your new question';
|
||||
$string['yournewtopic'] = 'Your new discussion topic';
|
||||
$string['yourreply'] = 'Your reply';
|
||||
|
||||
// Deprecated since Moodle 3.0.
|
||||
$string['subscribersto'] = 'Subscribers to "{$a->name}"';
|
||||
|
@ -124,7 +124,10 @@ class mod_forum_renderer extends plugin_renderer_base {
|
||||
} else {
|
||||
$cm = $modinfo->instances['forum'][$forum->id];
|
||||
$canviewemail = in_array('email', get_extra_user_fields(context_module::instance($cm->id)));
|
||||
$output .= $this->output->heading(get_string("subscribersto","forum", "'".format_string($forum->name)."'"));
|
||||
$strparams = new stdclass();
|
||||
$strparams->name = format_string($forum->name);
|
||||
$strparams->count = count($users);
|
||||
$output .= $this->output->heading(get_string("subscriberstowithcount", "forum", $strparams));
|
||||
$table = new html_table();
|
||||
$table->cellpadding = 5;
|
||||
$table->cellspacing = 5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user