mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Minor code improvements and housekeeping for various core classes and modules
This commit is contained in:
@@ -173,9 +173,9 @@ class Paths extends WireData {
|
||||
$key = "$key";
|
||||
} else if(strpos($key, 'http') === 0) {
|
||||
if(is_null($_http)) {
|
||||
$scheme = $this->wire('input')->scheme;
|
||||
$scheme = $this->wire()->input->scheme;
|
||||
if(!$scheme) $scheme = 'http';
|
||||
$httpHost = $this->wire('config')->httpHost;
|
||||
$httpHost = $this->wire()->config->httpHost;
|
||||
if($httpHost) $_http = "$scheme://$httpHost";
|
||||
}
|
||||
$http = $_http;
|
||||
|
Reference in New Issue
Block a user