The structure return by parse_url is an associative array, not an object.
This commit is contained in:
parent
208bab32b7
commit
541053e84b
@ -352,7 +352,7 @@ class HTMLOutputter extends XMLOutputter
|
||||
{
|
||||
if(Event::handle('StartScriptElement', array($this,&$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 = common_path($src) . '?version=' . STATUSNET_VERSION;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user