mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +02:00
Bump version to 3.0.206
This commit is contained in:
@@ -79,7 +79,7 @@ class ProcessWire extends Wire {
|
|||||||
* Reversion revision number
|
* Reversion revision number
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
const versionRevision = 205;
|
const versionRevision = 206;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Version suffix string (when applicable)
|
* Version suffix string (when applicable)
|
||||||
@@ -279,6 +279,7 @@ class ProcessWire extends Wire {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function __construct($config = null, $rootURL = '/') {
|
public function __construct($config = null, $rootURL = '/') {
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
if(empty($config)) $config = getcwd();
|
if(empty($config)) $config = getcwd();
|
||||||
if(is_string($config)) $config = self::buildConfig($config, $rootURL);
|
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
|
// no whitelist available, so defer to server_name
|
||||||
$host .= $port;
|
$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
|
// fallback to sanitized http_host if server_name not available
|
||||||
// note that http_host already includes port if not 80
|
// note that http_host already includes port if not 80
|
||||||
$host = $_SERVER['HTTP_HOST'];
|
$host = $_SERVER['HTTP_HOST'];
|
||||||
|
Reference in New Issue
Block a user