Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 880 → Rev 881

/trunk/api/text/wiki_papyrus/Parse/Syndication.php
1,5 → 1,5
<?php
// $Id: Syndication.php,v 1.4 2006-03-14 16:00:05 florian Exp $
// $Id: Syndication.php,v 1.5 2006-07-03 10:07:12 alexandre_tb Exp $
 
 
/**
15,7 → 15,7
*/
class Text_Wiki_Parse_Syndication extends Text_Wiki_Parse {
var $regex = '/\{\{Syndication titre="(.+?)" url="(.+?)" nb=(.+?) nouvellefenetre=(.+?) formatdate="(.+?)"\}\}/';
var $regex = '/\{\{Syndication titre="(.+?)" url="(.+?)" nb=(.+?) nouvellefenetre=(.+?) formatdate="(.+?)"( template="(.+?)")?\}\}/';
/**
*
37,6 → 37,7
$options = array(
'titre' => $matches[1], 'url' => $matches[2], 'nb' => $matches[3], 'nouvellefenetre' => $matches[4], 'formatdate' => $matches[5],
);
if ($matches['7'] != "") $options['template'] = $matches[7];
return $this->wiki->addToken($this->rule, $options);
}