The structure return by parse_url is an associative array, not an object.

This commit is contained in:
Craig Andrews 2010-01-06 17:13:09 -05:00
parent 541053e84b
commit 20144285ca

View File

@ -84,7 +84,7 @@ class MinifyPlugin extends Plugin
function onStartScriptElement($action,&$src,&$type) {
$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);
}