MDL-27171 messages: avoid using depricated notification method.
Signed-off-by: Ruslan Kabalin <[email protected]>
This commit is contained in:
+1
-1
@@ -2344,7 +2344,7 @@ function translate_message_default_setting($plugindefault, $processorname) {
|
||||
|
||||
// Validate the value. It should not exceed the maximum size
|
||||
if (!is_int($plugindefault) || ($plugindefault > 0x0f)) {
|
||||
notify(get_string('errortranslatingdefault', 'message'));
|
||||
$OUTPUT->notification(get_string('errortranslatingdefault', 'message'), 'notifyproblem');
|
||||
$plugindefault = $default;
|
||||
}
|
||||
// Use plugin default setting of 'permitted' is 0
|
||||
|
||||
Reference in New Issue
Block a user