diff options
author | alecpl <alec@alec.pl> | 2010-06-24 13:22:08 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-06-24 13:22:08 +0000 |
commit | 2011bef155aacdfa8461a4d5c2cd3988d946d135 (patch) | |
tree | 15eb4903597ded4ea1d6cbe3c9e18d6d31f13f0a /program/js/tiny_mce/plugins/spellchecker/rpc.php | |
parent | f821fecac880c8e4b3ca33897b6a32c140348c65 (diff) |
- TinyMCE 3.3.7
Diffstat (limited to 'program/js/tiny_mce/plugins/spellchecker/rpc.php')
-rwxr-xr-x | program/js/tiny_mce/plugins/spellchecker/rpc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/js/tiny_mce/plugins/spellchecker/rpc.php b/program/js/tiny_mce/plugins/spellchecker/rpc.php index a0072ae9c..0024d3f75 100755 --- a/program/js/tiny_mce/plugins/spellchecker/rpc.php +++ b/program/js/tiny_mce/plugins/spellchecker/rpc.php @@ -51,6 +51,7 @@ if (!$raw) { if (!$raw)
die('{"result":null,"id":null,"error":{"errstr":"Could not get raw post data.","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}');
+ // Passthrough request to remote server
if (isset($config['general.remote_rpc_url'])) {
$url = parse_url($config['general.remote_rpc_url']);
@@ -87,6 +88,7 @@ if (isset($config['general.remote_rpc_url'])) { die();
}
+console($raw); // Get JSON data
$json = new Moxiecode_JSON();
$input = $json->decode($raw);
@@ -105,6 +107,7 @@ $output = array( "error" => null
);
+console($json->encode($output)); // Return JSON encoded string
echo $json->encode($output);
|