Changeset 1509 in ExiteCMS for branches/PLi-Fusion/feeds.php
- Timestamp:
- 07/02/08 18:27:06 (4 years ago)
- File:
-
- 1 edited
-
branches/PLi-Fusion/feeds.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/PLi-Fusion/feeds.php
r1408 r1509 70 70 $item['title'] = "<![CDATA[ ".$data['post_subject']." ]]>"; 71 71 $item['link'] = $settings['siteurl']."forum/viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."&pid=".$data['post_id']."#post_".$data['post_id']; 72 $item['description'] = "<![CDATA[ ".(strlen($data['post_message']) > 500 ? (substr($data['post_message'],0,496)." ...") : $data['post_message'])." ]]>"; 72 $item['description'] = "<![CDATA[ <b>".$data['user_name']." ".$locale['401']."</b> ".(strlen($data['post_message']) > 500 ? (substr($data['post_message'],0,496)." ...") : $data['post_message'])." ]]>"; 73 // locale must be english for this to work! 74 $loc = setlocale("LC_TIME", "en_US"); 73 75 $item['pubDate'] = strftime("%a, %d %b %G %T %z", $data['post_datestamp']); 76 setlocale("LC_TIME", $loc); 74 77 $item['guid'] = $item['link']; // make the guid equal to the link, we don't have a need for permalinks 75 78 $feed[] = $item;
Note: See TracChangeset
for help on using the changeset viewer.
