From 2748aaf4aa3f19e17a37edc07e89ee402108900d Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 13 Dec 2015 15:28:57 -0800 Subject: JSON::XS -> Cpanel::JSON::XS --- httemplate/edit/cust_main_note.cgi | 2 +- httemplate/edit/payment_gateway.html | 2 +- httemplate/elements/htmlarea.html | 2 +- httemplate/elements/select-tiered.html | 2 +- httemplate/misc/xmlhttp-mib-browse.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi index 9ae29c2f1..c295e0d7a 100755 --- a/httemplate/edit/cust_main_note.cgi +++ b/httemplate/edit/cust_main_note.cgi @@ -26,7 +26,7 @@ <& /elements/htmlarea.html, 'field' => 'comment_html', 'curr_value' => $comment, - 'config' => { toolbarStartupExpanded => JSON::false, + 'config' => { toolbarStartupExpanded => Cpanel::JSON::XS::false, height => 315, }, &> diff --git a/httemplate/edit/payment_gateway.html b/httemplate/edit/payment_gateway.html index 156910f51..a85ba57af 100644 --- a/httemplate/edit/payment_gateway.html +++ b/httemplate/edit/payment_gateway.html @@ -39,7 +39,7 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); -my $json = JSON::XS->new; +my $json = Cpanel::JSON::XS->new; $json->canonical(1); my %modules = ( 'Business::OnlinePayment' => [ diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index 4f9b72163..dba744e23 100644 --- a/httemplate/elements/htmlarea.html +++ b/httemplate/elements/htmlarea.html @@ -32,7 +32,7 @@ Example: my %opt = @_; my $config = { 'height' => ($opt{height} || 420), - 'startupFocus' => JSON::true, + 'startupFocus' => Cpanel::JSON::XS::true, 'skin' => 'kama', 'toolbarCanCollapse' => JSON::true, 'removePlugins' => 'elementspath', diff --git a/httemplate/elements/select-tiered.html b/httemplate/elements/select-tiered.html index 48469dc04..e76bf762b 100644 --- a/httemplate/elements/select-tiered.html +++ b/httemplate/elements/select-tiered.html @@ -124,7 +124,7 @@ my %opt = @_; my $pre = $opt{prefix} || ''; my $tiers = $opt{tiers} or die "no tiers defined"; -my $json = JSON::XS->new(); +my $json = Cpanel::JSON::XS->new(); $json->canonical; my $i; diff --git a/httemplate/misc/xmlhttp-mib-browse.html b/httemplate/misc/xmlhttp-mib-browse.html index f3084ff6f..6b008538e 100644 --- a/httemplate/misc/xmlhttp-mib-browse.html +++ b/httemplate/misc/xmlhttp-mib-browse.html @@ -1,5 +1,5 @@ %#<% Data::Format::HTML->new->format($index{by_path}) %> -% my $json = "JSON"->new->canonical; +% my $json = Cpanel::JSON::XS->new->canonical; <% $json->encode($result) %> <%init> #<%once> #enable me in production -- cgit v1.2.1