Commit 9dbc12f5 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 706753: Bugzilla will not work with newest version of JSON::RPC 1.01 due to…

Bug 706753: Bugzilla will not work with newest version of JSON::RPC 1.01 due to non-backward compatibility r=dkl r=mkanat a=LpSolit
parent a25730da
......@@ -22,7 +22,18 @@
package Bugzilla::WebService::Server::JSONRPC;
use strict;
use base qw(JSON::RPC::Server::CGI Bugzilla::WebService::Server);
use Bugzilla::WebService::Server;
BEGIN {
our @ISA = qw(Bugzilla::WebService::Server);
if (eval { require JSON::RPC::Server::CGI }) {
unshift(@ISA, 'JSON::RPC::Server::CGI');
}
else {
require JSON::RPC::Legacy::Server::CGI;
unshift(@ISA, 'JSON::RPC::Legacy::Server::CGI');
}
}
use Bugzilla::Error;
use Bugzilla::WebService::Constants;
......
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