summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/edit/payment_gateway.html2
-rw-r--r--httemplate/elements/htmlarea.html2
-rw-r--r--httemplate/elements/select-tiered.html2
-rw-r--r--httemplate/misc/xmlhttp-mib-browse.html2
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