From e40070f7034bc88cb17295270437b41b5d036aaa Mon Sep 17 00:00:00 2001 From: Geoff Goehle Date: Tue, 8 Jan 2019 12:20:56 -0500 Subject: [PATCH] File '' uploaded successfully This is an extremely small change that fixes the file uploaded successfully message. To test upload a file using the file manager. After the patch the file name should be displayed correctly. --- lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm b/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm index 999b7427b1..1a28983930 100644 --- a/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm +++ b/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm @@ -1,6 +1,6 @@ ################################################################################ # WeBWorK Online Homework Delivery System -# Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ +# Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ # $CVSHeader: webwork2/lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm,v 1.30 2007/09/08 21:15:16 dpvc Exp $ # # This program is free software; you can redistribute it and/or modify it under @@ -932,7 +932,7 @@ sub Upload { } if (-e $file) { - $self->addgoodmessage($r->maketext("File '[_2]' uploaded successfully",$name)); + $self->addgoodmessage($r->maketext("File '[_1]' uploaded successfully",$name)); if ($name =~ m/\.(tar|tar\.gz|tgz)$/ && $self->getFlag('unpack')) { if ($self->unpack($name) && $self->getFlag('autodelete')) { if (unlink($file)) {$self->addgoodmessage($r->maketext("Archive '[_1]' deleted", $name))}