Subversion Repositories Applications.papyrus

Rev

Rev 881 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 881 Rev 931
Line 1... Line 1...
1
<?php
1
<?php
2
// $Id: Syndication.php,v 1.5 2006-07-03 10:07:12 alexandre_tb Exp $
2
// $Id: Syndication.php,v 1.6 2006-09-13 09:56:02 alexandre_tb Exp $
Line 3... Line 3...
3
 
3
 
4
 
4
 
5
/**
5
/**
Line 35... Line 35...
35
    function process(&$matches)
35
    function process(&$matches)
36
    {
36
    {
37
        $options = array(
37
        $options = array(
38
            'titre' => $matches[1], 'url' => $matches[2], 'nb' => $matches[3], 'nouvellefenetre' => $matches[4], 'formatdate' => $matches[5],
38
            'titre' => $matches[1], 'url' => $matches[2], 'nb' => $matches[3], 'nouvellefenetre' => $matches[4], 'formatdate' => $matches[5],
39
        );
39
        );
40
        if ($matches['7'] != "") $options['template'] = $matches[7]; 
40
        if (isset ($matches['7']) && $matches['7'] != "") $options['template'] = $matches[7]; 
41
        return $this->wiki->addToken($this->rule, $options);
41
        return $this->wiki->addToken($this->rule, $options);
42
    }
42
    }
Line 43... Line 43...
43
    
43
    
44
}
44
}
45
?>
45
?>