Minor refactoring.

This commit is contained in:
Lars Jung 2013-07-23 10:21:02 +02:00
parent ede9f4d3f8
commit efb447ae78
3 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ Options
"indexFiles": ["index.html", "index.htm", "index.php"],
"ignore": ["^\\.", "^_{{pkg.name}}"],
"smartBrowsing": true,
"extInNewWindow": true
"extInNewWindow": false
},
@ -180,7 +180,7 @@ Options
2: mode, servername and -version
*/
"mode": {
"enabled": true,
"enabled": false,
"display": 2
},

View File

@ -207,6 +207,8 @@ class Api {
json_exit();
}
json_fail(100, "unsupported request");
}
}

View File

@ -53,8 +53,6 @@ if (array_key_exists("action", $_REQUEST)) {
$api = new Api($app);
$api->apply();
json_fail(100, "unsupported request");
} else {
header("Content-type: text/html;charset=utf-8");