Bug 11944: use CGI( -utf8 ) everywhere
[koha.git] / test / progressbarsubmit.pl
index 22b0a41..a15cf51 100755 (executable)
@@ -28,7 +28,7 @@ use strict;
 use warnings;
 
 # standard or CPAN modules used
-use CGI;
+use CGI qw ( -utf8 );
 use CGI::Cookie;
 
 # Koha modules used
@@ -45,7 +45,7 @@ my $jobID = $input->param('jobID');
 my $completedJobID = $input->param('completedJobID');
 
 my ($template, $loggedinuser, $cookie)
-    = get_template_and_user({template_name => "test/progressbar.tmpl",
+    = get_template_and_user({template_name => "test/progressbar.tt",
                     query => $input,
                     type => "intranet",
                     debug => 1,
@@ -72,7 +72,7 @@ if ($completedJobID) {
 
             my $reply = CGI->new("");
             print $reply->header(-type => 'text/html');
-            print "{ jobID: '$jobID' }";
+            print '{"jobID":"' . $jobID . '"}';
             exit 0;
         } elsif (defined $pid) {
         # if we get here, we're a child that has detached