From 4deb2cc1bee426822f06ebee64592c6150e4911b Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 27 Feb 2014 08:38:07 -0800 Subject: [PATCH] Use FormatJson instead of json_* functions Change-Id: Ic4eccb13429d4081153b5deb550ac33bf2bd687d --- Views/AbuseFilterViewEdit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Views/AbuseFilterViewEdit.php b/Views/AbuseFilterViewEdit.php index bd9fd0363..86fdd5a4e 100644 --- a/Views/AbuseFilterViewEdit.php +++ b/Views/AbuseFilterViewEdit.php @@ -507,7 +507,7 @@ class AbuseFilterViewEdit extends AbuseFilterView { } // Add export - $exportText = json_encode( array( 'row' => $row, 'actions' => $actions ) ); + $exportText = FormatJson::encode( array( 'row' => $row, 'actions' => $actions ) ); $tools .= Xml::tags( 'a', array( 'href' => '#', 'id' => 'mw-abusefilter-export-link' ), $this->msg( 'abusefilter-edit-export' )->parse() ); $tools .= Xml::element( 'textarea', @@ -899,7 +899,7 @@ class AbuseFilterViewEdit extends AbuseFilterView { // Check for importing $import = $request->getVal( 'wpImportText' ); if ( $import ) { - $data = json_decode( $import ); + $data = FormatJson::decode( $import ); $importRow = $data->row; $actions = wfObjectToArray( $data->actions );