Changeset 5773

Show
Ignore:
Timestamp:
06/14/08 20:22:02 (4 months ago)
Author:
gregmac
Message:

Implement #2701

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/common/json.inc.php

    r4993 r5773  
    103103 * // convert a complexe value to JSON notation, and send it to the browser 
    104104 * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); 
     105 * header("Content-type: application/json");  
    105106 * $output = $json->encode($value); 
    106107 * 
  • freepbx/trunk/amp_conf/htdocs/admin/config.php

    r5771 r5773  
    4242                        $response = do_reload(); 
    4343                        $json = new Services_JSON(); 
     44                        header("Content-type: application/json"); 
    4445                        echo $json->encode($response); 
    4546                break; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads