summaryrefslogtreecommitdiffstats
path: root/api.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-08 11:09:10 +0200
committerSimon Rettberg2016-09-08 11:09:10 +0200
commitbca77522f7775ba02165fe67903de74bff1a75d7 (patch)
tree6353de20dbec99dd2da3021642afb940cc850cdf /api.php
parent[roomplanner] Fix key constraint error on room saving (diff)
downloadslx-admin-bca77522f7775ba02165fe67903de74bff1a75d7.tar.gz
slx-admin-bca77522f7775ba02165fe67903de74bff1a75d7.tar.xz
slx-admin-bca77522f7775ba02165fe67903de74bff1a75d7.zip
gzip compression for api.php aswell
Diffstat (limited to 'api.php')
-rw-r--r--api.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/api.php b/api.php
index 15b11881..fdccf14a 100644
--- a/api.php
+++ b/api.php
@@ -29,8 +29,7 @@ if (!empty($_REQUEST['do'])) {
} elseif (!empty($argv[1])) {
$module = preg_replace('/[^a-z]/', '', $argv[1]);
} else {
- // No specific module - set default
- $module = 'main';
+ exit(1);
}
Module::init();
@@ -45,7 +44,7 @@ if (!file_exists($module)) {
}
Header('Content-Type: text/plain; charset=utf-8');
-
+ob_start('ob_gzhandler');
// Load module - it will execute pre-processing, or act upon request parameters
require_once($module);