Skip to content

Commit

Permalink
deprecated JSON class
Browse files Browse the repository at this point in the history
JSON is natively supported since years. This makes
2145bd4 obsolete again.
  • Loading branch information
splitbrain committed Jul 27, 2018
1 parent 277113f commit d443762
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 1,269 deletions.
420 changes: 0 additions & 420 deletions _test/tests/inc/json.test.php

This file was deleted.

7 changes: 3 additions & 4 deletions inc/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ protected function call_suggestions() {
array(), // no description
array() // no urls
);
$json = new \JSON();

header('Content-Type: application/x-suggestions+json');
print $json->encode($suggestions);
print json_encode($suggestions);
}

/**
Expand Down Expand Up @@ -299,9 +298,9 @@ protected function call_mediaupload() {
'ns' => $NS
);
}
$json = new \JSON;

header('Content-Type: application/json');
echo $json->encode($result);
echo json_encode($result);
}

/**
Expand Down
Loading

0 comments on commit d443762

Please sign in to comment.