스마트 에디터 포토 업로드 php5.3이상에서만 작동되는 함수 지움
This commit is contained in:
@ -1130,34 +1130,7 @@ class UploadHandler
|
|||||||
protected function generate_response($content, $print_response = true) {
|
protected function generate_response($content, $print_response = true) {
|
||||||
if ($print_response) {
|
if ($print_response) {
|
||||||
$json = json_encode($content);
|
$json = json_encode($content);
|
||||||
|
|
||||||
if ( json_last_error() ){
|
|
||||||
switch (json_last_error()) {
|
|
||||||
case JSON_ERROR_NONE:
|
|
||||||
echo ' - No errors';
|
|
||||||
break;
|
|
||||||
case JSON_ERROR_DEPTH:
|
|
||||||
echo ' - Maximum stack depth exceeded';
|
|
||||||
break;
|
|
||||||
case JSON_ERROR_STATE_MISMATCH:
|
|
||||||
echo ' - Underflow or the modes mismatch';
|
|
||||||
break;
|
|
||||||
case JSON_ERROR_CTRL_CHAR:
|
|
||||||
echo ' - Unexpected control character found';
|
|
||||||
break;
|
|
||||||
case JSON_ERROR_SYNTAX:
|
|
||||||
echo ' - Syntax error, malformed JSON';
|
|
||||||
break;
|
|
||||||
case JSON_ERROR_UTF8:
|
|
||||||
echo ' - Malformed UTF-8 characters, possibly incorrectly encoded';
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
echo ' - Unknown error';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
echo PHP_EOL;
|
|
||||||
}
|
|
||||||
$redirect = isset($_REQUEST['redirect']) ?
|
$redirect = isset($_REQUEST['redirect']) ?
|
||||||
stripslashes($_REQUEST['redirect']) : null;
|
stripslashes($_REQUEST['redirect']) : null;
|
||||||
if ($redirect) {
|
if ($redirect) {
|
||||||
|
|||||||
Reference in New Issue
Block a user