alecpl
2010-04-01 7fdb9da98e080ad623e3099c05eab17041013cab
program/include/rcube_json_output.php
@@ -16,7 +16,7 @@
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
 +-----------------------------------------------------------------------+
 $Id:  $
 $Id$
*/
@@ -218,7 +218,6 @@
            $s_header_sent = true;
            send_nocacheing_headers();
            header('Content-Type: text/plain; charset=' . $this->get_charset());
            print '/** ajax response ['.date('d/M/Y h:i:s O')."] **/\n";
        }
        // unset default env vars
@@ -239,7 +238,7 @@
        if (!empty($this->callbacks))
          $response['callbacks'] = $this->callbacks;
        echo json_encode($response);
        echo json_serialize($response);
    }
    
    
@@ -251,11 +250,11 @@
    private function get_js_commands()
    {
        $out = '';
        foreach ($this->commands as $i => $args) {
            $method = array_shift($args);
            foreach ($args as $i => $arg) {
                $args[$i] = json_encode($arg);
                $args[$i] = json_serialize($arg);
            }
            $out .= sprintf(