diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-12-13 15:28:57 -0800 |
|---|---|---|
| committer | Mitch Jackson <mitch@freeside.biz> | 2018-10-09 18:35:53 -0400 |
| commit | 79800f746bcbea85297b8ec0a94f19a75ed080d0 (patch) | |
| tree | 48e74122cf56b54b03c1b982dd87964d115c4371 /httemplate | |
| parent | 828f56957dcd4fb4409eccc8436bf935aa47a8c6 (diff) | |
JSON::XS -> Cpanel::JSON::XS
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/edit/payment_gateway.html | 2 | ||||
| -rw-r--r-- | httemplate/elements/htmlarea.html | 2 | ||||
| -rw-r--r-- | httemplate/elements/select-tiered.html | 2 | ||||
| -rw-r--r-- | httemplate/misc/xmlhttp-mib-browse.html | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/edit/payment_gateway.html b/httemplate/edit/payment_gateway.html index b28be2358..b44b31513 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 0ba417795..68acb970c 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, 'basePath' => $p.'elements/ckeditor/', diff --git a/httemplate/elements/select-tiered.html b/httemplate/elements/select-tiered.html index 9c7dfcf82..bdec95caf 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; $json->allow_nonref(1); 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 |
