MDL-52063 forum: Moved notification is not a problem
authorDan Poltawski <dan@moodle.com>
Tue, 10 Nov 2015 09:38:23 +0000 (09:38 +0000)
committerDan Poltawski <dan@moodle.com>
Tue, 10 Nov 2015 09:39:18 +0000 (09:39 +0000)
The default behaviour of $OUTPUT->notification() is to indiciate a
problem.

mod/forum/discuss.php

index 36dcb3f..33fe847 100644 (file)
@@ -349,7 +349,7 @@ if ($forum->type == 'qanda' && !has_capability('mod/forum:viewqandawithoutpostin
 }
 
 if ($move == -1 and confirm_sesskey()) {
-    echo $OUTPUT->notification(get_string('discussionmoved', 'forum', format_string($forum->name,true)));
+    echo $OUTPUT->notification(get_string('discussionmoved', 'forum', format_string($forum->name,true)), 'notifysuccess');
 }
 
 $canrate = has_capability('mod/forum:rate', $modcontext);