diff --git a/core/Component.inc b/core/Component.inc index a59c7464..2cc03cdd 100644 --- a/core/Component.inc +++ b/core/Component.inc @@ -98,9 +98,8 @@ } - /** - * Load the Models of this Controller. + * Load the Models of this Component. * * @throws \nre\exceptions\DriverNotFoundException * @throws \nre\exceptions\DriverNotValidException diff --git a/core/Logger.inc b/core/Logger.inc index 0ea34757..8f15caff 100644 --- a/core/Logger.inc +++ b/core/Logger.inc @@ -64,7 +64,7 @@ * @param string $message Message to log * @param int $logMode Log mode to use */ - public function log($message, $logMode=self::LOGMODE_SCREEN) + public function log($message, $logMode=self::LOGMODE_AUTO) { // Choose log mode automatically if($logMode == self::LOGMODE_AUTO) { @@ -135,7 +135,7 @@ */ private function isLocalhost() { - return ($_SERVER['SERVER_ADDR'] == '127.0.0.1' || $_SERVER['SERVER_ADDR'] = '::1'); + return (strpos($_SERVER['HTTP_HOST'], '.') === false); } }