]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
parse_url returns an associative array - not an object
authorCraig Andrews <candrews@integralblue.com>
Wed, 17 Feb 2010 17:02:59 +0000 (12:02 -0500)
committerBrion Vibber <brion@pobox.com>
Wed, 17 Feb 2010 18:10:07 +0000 (10:10 -0800)
lib/htmloutputter.php
plugins/Minify/MinifyPlugin.php

index 317f5ea612a79b486488875120188583a10d1e01..4a88337bc509b66429efe6ae4181bcc9953bedef 100644 (file)
@@ -428,7 +428,7 @@ class HTMLOutputter extends XMLOutputter
     {
         if(Event::handle('StartCssLinkElement', array($this,&$src,&$theme,&$media))) {
             $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']))
             {
                 if(file_exists(Theme::file($src,$theme))){
                    $src = Theme::path($src, $theme);
index b49b6a4bad1dc63c296edab6b6a8bbc5fe735c72..fe1883ded484082b4133de9e10b97da64b5ca92c 100644 (file)
@@ -96,7 +96,7 @@ class MinifyPlugin extends Plugin
             && is_null(common_config('theme', 'path'))
             && is_null(common_config('theme', 'server'));
         $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']))
         {
             if(!isset($theme)) {
                 $theme = common_config('site', 'theme');