X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=tools%2Fbackground-job-progress.pl;h=380ad15c3225231794bd60396e280ded2dda7ec6;hb=7224e47dfe433d94f19b14eade1abee5f5d5c964;hp=cd8a0651a0ae4aba6c824c64ed7d7c3eee19cc01;hpb=49e0a8fc786b61b56d15d77d79c180c60c595943;p=koha_fer diff --git a/tools/background-job-progress.pl b/tools/background-job-progress.pl index cd8a0651a0..380ad15c32 100755 --- a/tools/background-job-progress.pl +++ b/tools/background-job-progress.pl @@ -18,6 +18,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. use strict; +#use warnings; FIXME - Bug 2505 # standard or CPAN modules used use IO::File; @@ -35,7 +36,7 @@ my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value, if ($auth_status ne "ok") { my $reply = CGI->new(""); print $reply->header(-type => 'text/html'); - print "{ progress: 0 }"; + print '{"progress":"0"}'; exit 0; } @@ -53,4 +54,4 @@ if (defined $job) { my $reply = CGI->new(""); print $reply->header(-type => 'text/html'); # response will be sent back as JSON -print "{ progress: $reported_progress, job_size: $job_size, job_status: '$job_status' }"; +print '{"progress":"' . $reported_progress . '","job_size":"' . $job_size . '","job_status":"' . $job_status . '"}';