mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
Combined $schema and $absolute into $schema
This commit is contained in:
@@ -294,7 +294,7 @@ class UrlManager extends Component
|
||||
if (strpos($url, '://') === false) {
|
||||
$url = $this->getHostInfo() . $url;
|
||||
}
|
||||
if ($schema !== null && ($pos = strpos($url, '://')) !== false) {
|
||||
if ($schema && ($pos = strpos($url, '://')) !== false) {
|
||||
$url = $schema . substr($url, $pos);
|
||||
}
|
||||
return $url;
|
||||
|
||||
Reference in New Issue
Block a user