Skip to content

Commit

Permalink
Merge pull request #121 from creative-commoners/pulls/2.2/remove-json…
Browse files Browse the repository at this point in the history
…-methods

FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
  • Loading branch information
ScopeyNZ authored Oct 28, 2018
2 parents 7f5b1eb + 1ad87eb commit 02c646a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/StringTagField.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function saveInto(DataObjectInterface $record)
*/
public function suggest(HTTPRequest $request)
{
$responseBody = Convert::raw2json(
$responseBody = json_encode(
array('items' => array())
);

Expand All @@ -285,7 +285,7 @@ public function suggest(HTTPRequest $request)
$tags = $this->getTags($term);
}

$responseBody = Convert::raw2json(
$responseBody = json_encode(
array('items' => $tags)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/TagField.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function Field($properties = array())
}
$schema['optionUrl'] = $this->getSuggestURL();
}
$this->setAttribute('data-schema', Convert::array2json($schema));
$this->setAttribute('data-schema', json_encode($schema));

$this->addExtraClass('ss-tag-field');

Expand Down

0 comments on commit 02c646a

Please sign in to comment.