[SOLVED] $node->image Bug in 1.9.2

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
reto
Forum Members
Forum Members
Posts: 24
Joined: Sat Feb 18, 2006 3:35 pm

[SOLVED] $node->image Bug in 1.9.2

Post by reto »

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:

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;
	    }
cheers,
Reto
Last edited by reto on Sun Jan 16, 2011 7:16 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: $node->image Bug in 1.9.2

Post by Dr.CSS »

Yes it is a known thing and is fixed in next version...
reto
Forum Members
Forum Members
Posts: 24
Joined: Sat Feb 18, 2006 3:35 pm

Re: $node->image Bug in 1.9.2

Post by reto »

Ok, that's great news, thanks!

regards,
Reto
Post Reply

Return to “CMSMS Core”