Load defaults in wrapper

This commit is contained in:
Paul Gear
2013-11-26 06:33:33 +10:00
parent 58620f5a9d
commit 3306768e2d

View File

@ -6,6 +6,7 @@
*/
$defaults_file = 'includes/defaults.inc.php';
$config_file = 'config.php';
// move to observium install dir
@ -24,6 +25,7 @@ function iscli() {
if ( iscli() ) {
require_once($defaults_file);
require_once($config_file);
print(json_encode($config));
}