Minor changes.

This commit is contained in:
Lars Jung 2015-05-10 16:09:11 +02:00
parent b6b84a541b
commit 34e6c2c381
3 changed files with 8 additions and 5 deletions

View file

@ -22,7 +22,7 @@ class Bootstrap {
$this->setup_server();
$this->setup_paths();
$this->setup_cache();
$this->setup_ext_cmds();
$this->setup_cmds();
$app = new App();
if (Util::is_post_request()) {
@ -123,7 +123,7 @@ class Bootstrap {
define("HAS_WRITABLE_CACHE", @is_writable(CACHE_PATH));
}
private function setup_ext_cmds() {
private function setup_cmds() {
define("CMDS_PATH", Util::normalize_path(CACHE_PATH . "/cmds.json", false));

View file

@ -53,7 +53,7 @@ class Util {
public static function is_post_request() {
return (strtolower($_SERVER["REQUEST_METHOD"]) === "post");
return (strtolower(getenv("REQUEST_METHOD")) === "post");
}