From fa4942f3b534e8401c4e1affd440f6e5251876b5 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 19 Aug 2015 16:00:14 +1200 Subject: [PATCH] MINOR: Fix line-endings in rpc.php --- thirdparty/tinymce-spellchecker/rpc.php | 224 ++++++++++++------------ 1 file changed, 112 insertions(+), 112 deletions(-) diff --git a/thirdparty/tinymce-spellchecker/rpc.php b/thirdparty/tinymce-spellchecker/rpc.php index 415f57007..fa7b3d8cc 100644 --- a/thirdparty/tinymce-spellchecker/rpc.php +++ b/thirdparty/tinymce-spellchecker/rpc.php @@ -1,112 +1,112 @@ -decode($raw); - -// Execute RPC -if (isset($config['general.engine'])) { - $spellchecker = new $config['general.engine']($config); - $result = call_user_func_array(array($spellchecker, $input['method']), $input['params']); -} else - die('{"result":null,"id":null,"error":{"errstr":"You must choose an spellchecker engine in the config.php file.","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}'); - -// Request and response id should always be the same -$output = array( - "id" => $input->id, - "result" => $result, - "error" => null -); - -// Return JSON encoded string -echo $json->encode($output); - -?> +decode($raw); + +// Execute RPC +if (isset($config['general.engine'])) { + $spellchecker = new $config['general.engine']($config); + $result = call_user_func_array(array($spellchecker, $input['method']), $input['params']); +} else + die('{"result":null,"id":null,"error":{"errstr":"You must choose an spellchecker engine in the config.php file.","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}'); + +// Request and response id should always be the same +$output = array( + "id" => $input->id, + "result" => $result, + "error" => null +); + +// Return JSON encoded string +echo $json->encode($output); + +?>