Changeset 1509 in ExiteCMS for branches/PLi-Fusion/feeds.php


Ignore:
Timestamp:
07/02/08 18:27:06 (4 years ago)
Author:
hverton
Message:

Merged trunk revisions 1408:1508 into the PLi-Fusion branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/feeds.php

    r1408 r1509  
    7070            $item['title'] = "<![CDATA[ ".$data['post_subject']." ]]>"; 
    7171            $item['link'] = $settings['siteurl']."forum/viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."&amp;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"); 
    7375            $item['pubDate'] = strftime("%a, %d %b %G %T %z", $data['post_datestamp']); 
     76            setlocale("LC_TIME", $loc); 
    7477            $item['guid'] = $item['link'];  // make the guid equal to the link, we don't have a need for permalinks 
    7578            $feed[] = $item; 
Note: See TracChangeset for help on using the changeset viewer.