Fix header() in api.php

Minor cleanup
This commit is contained in:
Ian Moore 2015-07-30 19:19:18 -04:00
parent 921c8175e6
commit 1a1b09b682
3 changed files with 14 additions and 19 deletions

View File

@ -381,7 +381,7 @@ if($vbox && $vbox->errors) {
if(isset($request['printr'])) {
print_r($response);
} else {
header('Content-type', 'application/json');
header('Content-type: application/json');
echo(json_encode($response));
}

View File

@ -1,6 +1,5 @@
/*
* Endpoint configuration for phpVirtualBox
* $Id$
*/
var vboxEndpointConfig = {
api: 'endpoints/api.php',

View File

@ -32,8 +32,6 @@ foreach($arrXml['TS']['context'] as $c) {
if(!is_array($m)) continue;
#if(@$m['translation_attr']['type'] == 'obsolete') continue;
$s = clean($m['source'],true);
unset($m['source']);
@ -62,8 +60,6 @@ foreach($arrXml['TS']['context'] as $c) {
if($phpStyle) {
$m['htmlized'] = htmlentities($s, ENT_NOQUOTES, 'UTF-8');
if(strlen($m['htmlized']) == strlen($s)) unset($m['htmlized']);
} else {
#unset($m['comment']);
}
// Messages for this context is an array