News module extra field iimages don't work in Firefox
Posted: Thu Mar 13, 2008 9:23 am
Extra fields of type "file" let you upload images & add them to a story. The images appear ok in IE, but not in FF, because the URL uses "\" not "/" in the {$entry->file_location} tag.
To fix this change line 267 of News\Action.default.php :
//Old : $onerow->file_location = cms_join_path('uploads','news','id'.$row['news_id']);
$onerow->file_location = 'uploads/news/id'.$row['news_id'];
Are there any potential side-effects of this change ?
To fix this change line 267 of News\Action.default.php :
//Old : $onerow->file_location = cms_join_path('uploads','news','id'.$row['news_id']);
$onerow->file_location = 'uploads/news/id'.$row['news_id'];
Are there any potential side-effects of this change ?