mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11647] Fix invalid variable name
PHPBB3-11647
This commit is contained in:
parent
4f3ce669f6
commit
63f1d99cc8
1 changed files with 2 additions and 3 deletions
|
@ -40,12 +40,11 @@ class phpbb_template_asset
|
||||||
{
|
{
|
||||||
// Workaround for PHP 5.4.6 and older bug #62844 - add fake scheme and then remove it
|
// Workaround for PHP 5.4.6 and older bug #62844 - add fake scheme and then remove it
|
||||||
$this->components = parse_url('http:' . $url);
|
$this->components = parse_url('http:' . $url);
|
||||||
if (isset($result['port']))
|
if (isset($this->components['port']))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
unset($result['scheme']);
|
unset($this->components['scheme']);
|
||||||
$this->components = $result;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->components = parse_url($url);
|
$this->components = parse_url($url);
|
||||||
|
|
Loading…
Add table
Reference in a new issue