X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/cec131d5363dee47eed339881c1043c404094fb7..b2351eea120bb8f6293aae113e77a3e3edd46687:/src/shpub/Config.php diff --git a/src/shpub/Config.php b/src/shpub/Config.php index d41e45d..2ca7d9a 100644 --- a/src/shpub/Config.php +++ b/src/shpub/Config.php @@ -12,6 +12,8 @@ class Config */ public $host; + public $debug = false; + protected function getConfigFilePath() { if (!isset($_SERVER['HOME'])) { @@ -86,7 +88,7 @@ class Config } foreach ($this->hosts as $key => $host) { if ($host->default) { - return $host; + return $key; } } @@ -114,5 +116,10 @@ class Config } return '"' . $val . '"'; } + + public function setDebug($debug) + { + $this->debug = $debug; + } } ?>