Commit 2ee8650a6db70f34394ea2578d5157144731db0f

  • avatar
  • blaise.ca <balleyne @d…b.privatedns.com>
  • Sun Nov 01 08:10:43 CET 2009
Cleaned up Gitorious title and description.
  
446446
447447class Gitorious extends Entry{
448448 var $img = 'http://gitorious.org/favicon.ico';
449
449450 function getSingleTitle(){
450 return $this->title;
451 // The first paragraph has the same content as the title, but with links
452 if (preg_match('/^<p>(.+)<\/p>/i', htmlspecialchars_decode($this->content), $matches)) {
453 return $matches[1];
454 } else {
455 return $this->title;
456 }
451457 }
458
452459 function getSingleDescription(){
453 return htmlspecialchars_decode($this->content);
460 return preg_replace('/^(<p>.+<\/p>)/i', '', htmlspecialchars_decode($this->content));
454461 }
455462}
456463