diff options
| author | wjames5 <will@tekimaki.com> | 2006-09-15 17:49:01 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2006-09-15 17:49:01 +0000 |
| commit | 4c0b05ba404f8029611ed53313ef15ceee675466 (patch) | |
| tree | 3fb6a68b38311704fa50fb2e97295fde34827beb /list_content.php | |
| parent | 97a07a81d60888dbde8e72203387c69b0e848123 (diff) | |
| download | liberty-4c0b05ba404f8029611ed53313ef15ceee675466.tar.gz liberty-4c0b05ba404f8029611ed53313ef15ceee675466.tar.bz2 liberty-4c0b05ba404f8029611ed53313ef15ceee675466.zip | |
sets correct content-type for json format
Diffstat (limited to 'list_content.php')
| -rw-r--r-- | list_content.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list_content.php b/list_content.php index 1ae9ee4..26dcfd8 100644 --- a/list_content.php +++ b/list_content.php @@ -3,7 +3,7 @@ * list_content * * @author spider <spider@steelsun.com> - * @version $Revision: 1.20 $ + * @version $Revision: 1.21 $ * @package liberty * @subpackage functions */ @@ -41,7 +41,7 @@ if ( !empty( $_REQUEST['output'] ) ){ switch ($_REQUEST['output']){ case 'json': $gBitSmarty->assign_by_ref('listcontent', $contentList['data']); - header("content-type:text/javascript"); + header('Content-type:application/json'); $gBitSmarty->display( 'bitpackage:liberty/list_content_json.tpl' ); break; case 'ajax': |
