]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
The structure return by parse_url is an associative array, not an object.
authorCraig Andrews <candrews@integralblue.com>
Wed, 6 Jan 2010 22:13:09 +0000 (17:13 -0500)
committerCraig Andrews <candrews@integralblue.com>
Wed, 6 Jan 2010 22:13:09 +0000 (17:13 -0500)
plugins/Minify/MinifyPlugin.php

index 71fade19a5767a41fd6b080f2aa01be3f8e6dd1b..718bfd163530d92db7ed03c16acd14de55d04cb2 100644 (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);
         }