forked from GNUsocial/gnu-social
The structure return by parse_url is an associative array, not an object.
This commit is contained in:
parent
541053e84b
commit
20144285ca
@ -84,7 +84,7 @@ class MinifyPlugin extends Plugin
|
|||||||
|
|
||||||
function onStartScriptElement($action,&$src,&$type) {
|
function onStartScriptElement($action,&$src,&$type) {
|
||||||
$url = parse_url($src);
|
$url = parse_url($src);
|
||||||
if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment))
|
if( empty($url['scheme']) && empty($url['host']) && empty($url['query']) && empty($url['fragment']))
|
||||||
{
|
{
|
||||||
$src = $this->minifyUrl($src);
|
$src = $this->minifyUrl($src);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user