mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-39185 mod_forum: declare new object before creating member variables to prevent Strict Standards warning
This commit is contained in:
parent
b3661ab272
commit
4a8a72656d
@ -156,9 +156,10 @@
|
||||
}
|
||||
|
||||
if (!empty($forum->blockafter) && !empty($forum->blockperiod)) {
|
||||
$a = new stdClass();
|
||||
$a->blockafter = $forum->blockafter;
|
||||
$a->blockperiod = get_string('secondstotime'.$forum->blockperiod);
|
||||
echo $OUTPUT->notification(get_string('thisforumisthrottled','forum',$a));
|
||||
echo $OUTPUT->notification(get_string('thisforumisthrottled', 'forum', $a));
|
||||
}
|
||||
|
||||
if ($forum->type == 'qanda' && !has_capability('moodle/course:manageactivities', $context)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user