]> 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)
committerCraig Andrews <candrews@integralblue.com>
Wed, 17 Feb 2010 17:02:59 +0000 (12:02 -0500)
lib/htmloutputter.php
plugins/Minify/MinifyPlugin.php

index 47e56fc8f8ba6041c63821c3f534ed2ddaf072a1..7315fe2ad44d34c43c107af91da9bbaa6e6c595e 100644 (file)
@@ -439,7 +439,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');