Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 841 → Rev 842

/trunk/api/text/wiki_papyrus/Parse/Lien.php
1,5 → 1,5
<?php
// $Id: Lien.php,v 1.1 2006-05-10 16:02:49 ddelon Exp $
// $Id: Lien.php,v 1.2 2006-05-10 19:21:47 ddelon Exp $
 
 
/**
15,7 → 15,7
*/
class Text_Wiki_Parse_Lien extends Text_Wiki_Parse {
var $regex = '/\{\{Lien ((?:menu)|(?:site))="((?:\w+)|(?:\d+))" *\}\}/';
var $regex = '/\{\{Lien ((?:menu)|(?:site))="((?:\w+)|(?:\d+))" (?:(?:titre)="(.*)")* *\}\}/';
/**
*
34,9 → 34,11
*/
function process(&$matches)
{
if (!isset($matches[3])) $matches[3]='';
$options = array(
'niveau' => $matches[1],
'identifiant' => $matches[2]
'identifiant' => $matches[2],
'titre' => $matches[3]
);
return $this->wiki->addToken($this->rule, $options);