[SOLVED] $node->image Bug in 1.9.2
Posted: Fri Jan 14, 2011 10:32 pm
Hi all,
The MenuManager.module.php for some reasons removes double slashes (probably that was intended to fix some incorrect path-glueing, but it's just lazy coding). It now removes the protocols double slashes as well.
Check the commented lines (str_replace) which brake the image URL:
cheers,
Reto
The MenuManager.module.php for some reasons removes double slashes (probably that was intended to fix some incorrect path-glueing, but it's just lazy coding). It now removes the protocols double slashes as well.
Check the commented lines (str_replace) which brake the image URL:
Code: Select all
if( !empty($tmp) && $tmp != -1 )
{
$url = get_site_preference('content_imagefield_path').'/'.$tmp;
$url = $config['image_uploads_url'].'/'.$url;
//$url = str_replace('//','/',$url);
$onenode->image = $url;
}
$tmp = $content->GetPropertyValue('thumbnail');
if( !empty($tmp) && $tmp != -1 )
{
$url = get_site_preference('content_thumbnailfield_path').'/'.$tmp;
$url = $config['image_uploads_url'].'/'.$url;
//$url = str_replace('//','/',$url);
$onenode->thumbnail = $url;
}
Reto