diff --git a/stats.pl b/stats.pl index 3cdb083cb..231cd2c0b 100755 --- a/stats.pl +++ b/stats.pl @@ -9,9 +9,9 @@ use lib ("$ENV{'PERLLIB'}/vendor_perl"); use Net::WebSocket::Server; use utf8; -eval "use JSON::XS qw(encode_json decode_json);"; +eval "use JSON::XS"; if ($@) { - eval "use JSON::PP qw(encode_json decode_json);"; + eval "use JSON::PP"; } our ($current_theme);