Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39185 mod_forum: declare new object before creating member variab…

…les to prevent Strict Standards warning
  • Loading branch information...
commit 4a8a72656d35b9cb358973afbbd9c130164a7b05 1 parent b3661ab
@markn86 markn86 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  mod/forum/view.php
View
3  mod/forum/view.php
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.