1
0
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:
Ryan Cramer
2022-09-23 11:19:51 -04:00
parent d6d68d8cc0
commit b87566d0b3
39 changed files with 960 additions and 741 deletions

View File

@@ -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;