MichDe / sweetcron

Automatically exported from code.google.com/p/sweetcron
Other
0 stars 0 forks source link

get_feed_class() returns actual domain #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. put <?php echo $item->get_feed_class()?> within the loop
2. view source of output

What is the expected output? What do you see instead?
should return a CSS-safe name of domain (ie, "flickr_com" instead of
"flickr.com").  however, whats outputted is the actual domain ("flickr.com").

What version of the product are you using? On what operating system?
sweetcron 1.6.  doesnt appear to be caused by any environment variables.

Please provide any additional information below.
n/a

Original issue reported on code.google.com by royci...@gmail.com on 29 Aug 2008 at 7:23

GoogleCodeExporter commented 9 years ago
Change:
                $new_item->feed_class = str_replace('\.','_',$new_item->feed_domain);   
to:
                $new_item->feed_class = str_replace('.','_',$new_item->feed_domain);    
in "system\application\models\item_model.php" line 60

Original comment by yanto.e...@gmail.com on 29 Aug 2008 at 7:33

GoogleCodeExporter commented 9 years ago
fixed in the latest commit

Original comment by yongf...@gmail.com on 29 Aug 2008 at 8:55