diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index ffc2d528..b94428c5 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -79,7 +79,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 205; + const versionRevision = 206; /** * Version suffix string (when applicable) @@ -279,6 +279,7 @@ class ProcessWire extends Wire { * */ public function __construct($config = null, $rootURL = '/') { + parent::__construct(); if(empty($config)) $config = getcwd(); if(is_string($config)) $config = self::buildConfig($config, $rootURL); @@ -472,7 +473,7 @@ class ProcessWire extends Wire { // no whitelist available, so defer to server_name $host .= $port; - } else if(isset($_SERVER['HTTP_HOST']) && $host = $_SERVER['HTTP_HOST']) { + } else if(isset($_SERVER['HTTP_HOST'])) { // fallback to sanitized http_host if server_name not available // note that http_host already includes port if not 80 $host = $_SERVER['HTTP_HOST'];