스마트 에디터 포토 업로드 php5.3이상에서만 작동되는 함수 지움

This commit is contained in:
thisgun
2014-07-18 15:46:14 +09:00
parent 9d8a776bd9
commit 4875dcede0

View File

@ -1130,34 +1130,7 @@ class UploadHandler
protected function generate_response($content, $print_response = true) {
if ($print_response) {
$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']) ?
stripslashes($_REQUEST['redirect']) : null;
if ($redirect) {