parent
921c8175e6
commit
1a1b09b682
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/*
|
||||
* Endpoint configuration for phpVirtualBox
|
||||
* $Id$
|
||||
*/
|
||||
var vboxEndpointConfig = {
|
||||
api: 'endpoints/api.php',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue