equal
deleted
inserted
replaced
80 function process_json($json) |
80 function process_json($json) |
81 { |
81 { |
82 global $db, $session, $paths, $template, $plugins; // Common objects |
82 global $db, $session, $paths, $template, $plugins; // Common objects |
83 $parser = new Services_JSON(SERVICES_JSON_LOOSE_TYPE); |
83 $parser = new Services_JSON(SERVICES_JSON_LOOSE_TYPE); |
84 $data = $parser->decode($json); |
84 $data = $parser->decode($json); |
|
85 $data = decode_unicode_array($data); |
85 if ( !isset($data['mode']) ) |
86 if ( !isset($data['mode']) ) |
86 { |
87 { |
87 return $parser->encode(Array('mode'=>'error','error'=>'No mode defined!')); |
88 return $parser->encode(Array('mode'=>'error','error'=>'No mode defined!')); |
88 } |
89 } |
89 $ret = Array(); |
90 $ret = Array(); |