Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2008-03-01 20:30:07


Author: grafik
Date: 2008-03-01 20:30:07 EST (Sat, 01 Mar 2008)
New Revision: 43446
URL: http://svn.boost.org/trac/boost/changeset/43446

Log:
Use more memorable links for RSS based pages.
Text files modified:
   website/public_html/beta/common/code/boost_feed.php | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: website/public_html/beta/common/code/boost_feed.php
==============================================================================
--- website/public_html/beta/common/code/boost_feed.php (original)
+++ website/public_html/beta/common/code/boost_feed.php 2008-03-01 20:30:07 EST (Sat, 01 Mar 2008)
@@ -71,7 +71,9 @@
             }
             else if ($val['tag'] == 'item' && $val['type'] == 'close' && $item)
             {
- $item['guid'] = md5('['.$item['pubdate'].'] '.$item['title']);
+ //~ $item['guid'] = md5('['.$item['pubdate'].'] '.$item['title']);
+ $item['guid'] = gmdate('Y-m-d-',$item['pubdate'])
+ . preg_replace('@[\W]@i',"_",strtolower($item['title']));
                 if (!isset($item['link']) || ! $item['link'])
                 {
                     $item['link'] = $item_base_uri.'/'.$item['guid'];


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk