mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4512 from sminnee/4511-fix-tinymce-spellcheck-deprecation
Fix tinymce spellcheck deprecation
This commit is contained in:
commit
7fc58f75aa
10
thirdparty/tinymce-spellchecker/rpc.php
vendored
10
thirdparty/tinymce-spellchecker/rpc.php
vendored
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @package MCManager.includes
|
* @package MCManager.includes
|
||||||
* @author Moxiecode
|
* @author Moxiecode
|
||||||
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
|
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once("./includes/general.php");
|
require_once("./includes/general.php");
|
||||||
@ -24,14 +24,6 @@ $raw = "";
|
|||||||
if (isset($_POST["json_data"]))
|
if (isset($_POST["json_data"]))
|
||||||
$raw = getRequestParam("json_data");
|
$raw = getRequestParam("json_data");
|
||||||
|
|
||||||
// Try globals array
|
|
||||||
if (!$raw && isset($_GLOBALS) && isset($_GLOBALS["HTTP_RAW_POST_DATA"]))
|
|
||||||
$raw = $_GLOBALS["HTTP_RAW_POST_DATA"];
|
|
||||||
|
|
||||||
// Try globals variable
|
|
||||||
if (!$raw && isset($HTTP_RAW_POST_DATA))
|
|
||||||
$raw = $HTTP_RAW_POST_DATA;
|
|
||||||
|
|
||||||
// Try stream
|
// Try stream
|
||||||
if (!$raw) {
|
if (!$raw) {
|
||||||
if (!function_exists('file_get_contents')) {
|
if (!function_exists('file_get_contents')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user