Boost logo

Boost-Commit :

From: grafik_at_[hidden]
Date: 2007-05-04 22:50:18


Author: grafik
Date: 2007-05-04 22:50:18 EDT (Fri, 04 May 2007)
New Revision: 4002
URL: http://svn.boost.org/trac/boost/changeset/4002

Log:
Remove [] leading tags from feed story titles.

Text files modified:
   website/public_html/beta/common/code/feed.php | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: website/public_html/beta/common/code/feed.php
==============================================================================
--- website/public_html/beta/common/code/feed.php (original)
+++ website/public_html/beta/common/code/feed.php 2007-05-04 22:50:18 EDT (Fri, 04 May 2007)
@@ -110,6 +110,11 @@
                         $item['description'] = $desc[1];
                     }
                 }
+ if (isset($item['title']))
+ {
+ preg_match('@^(?:[\[][^\]]+[\]]\s*)*(.*)@i',$item['title'],$title);
+ $item['title'] = $title[1];
+ }
                 $this->db[$item['guid']] = $item;
                 $item = NULL;
             }


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