From 934b1e98321188ea2eeb7682b866fce65b07020e Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 12 Apr 2018 10:11:38 +0800 Subject: [PATCH] MDL-50907 antivirus: Switch to correct string --- lib/classes/antivirus/manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/antivirus/manager.php b/lib/classes/antivirus/manager.php index df7dc5c249c..0f785135f1f 100644 --- a/lib/classes/antivirus/manager.php +++ b/lib/classes/antivirus/manager.php @@ -92,7 +92,7 @@ class manager { foreach ($antiviruses as $antivirus) { $result = $antivirus->scan_data($data); if ($result === $antivirus::SCAN_RESULT_FOUND) { - throw new \core\antivirus\scanner_exception('virusfounduser', '', array('item' => get_string('datastream', 'antivirus'))); + throw new \core\antivirus\scanner_exception('virusfound', '', array('item' => get_string('datastream', 'antivirus'))); } } }