Commit 00563fc2 authored by Aaron Wells's avatar Aaron Wells

Bug 1607564: system paths shouldn't be based on a lang string

behatnotneeded: IOU a behat test for clamav

Change-Id: I43a65b7be7490bbcb13fa8885ca119c130856a98
parent dd298338
......@@ -809,7 +809,6 @@ $string['attachment'] = 'Attachment';
$string['editaccess'] = 'Edit access';
// Upload manager
$string['quarantinedirname'] = 'quarantine';
$string['clammovedfile'] = 'The file has been moved to a quarantine directory.';
$string['clamdeletedfile'] = 'The file has been deleted.';
$string['clamdeletedfilefailed'] = 'The file could not be deleted.';
......
......@@ -271,7 +271,7 @@ function clam_handle_infected_file($file) {
global $USER;
$userid = $USER->get('id');
$quarantinedir = get_config('dataroot') . get_string('quarantinedirname');
$quarantinedir = get_config('dataroot') . 'quarantine';
check_dir_exists($quarantinedir);
if (is_dir($quarantinedir) && is_writable($quarantinedir)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment