cvs: pear /Text_Wiki/Text/Wiki/Parse/Doku Wikilink.php

From: Date: Tue, 28 Feb 2006 01:55:09 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Parse/Doku Wikilink.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38714@lists.php.net to get a copy of this message
justinpatrin Tue Feb 28 01:55:09 2006 UTC Modified files: /pear/Text_Wiki/Text/Wiki/Parse/Doku Wikilink.php Log: Put back new style links for Doku wikilink http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php?r1=1.4&r2=1.5&diff_format=u Index: pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php diff -u pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php:1.4 pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php:1.5 --- pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php:1.4 Mon Feb 27 17:27:50 2006 +++ pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php Tue Feb 28 01:55:09 2006 @@ -12,7 +12,7 @@ * * @license LGPL * - * @version $Id: Wikilink.php,v 1.4 2006/02/27 17:27:50 justinpatrin Exp $ + * @version $Id: Wikilink.php,v 1.5 2006/02/28 01:55:09 justinpatrin Exp $ * */ @@ -107,12 +107,16 @@ }*/ // create and return the replacement token and preceding text - return $this->wiki->addToken($this->rule, $options); - /*return $this->wiki->addToken($this->rule, + + //old style, return a single token + //return $this->wiki->addToken($this->rule, $options); + + //new style, return start and end tokens around the link text + return $this->wiki->addToken($this->rule, array_merge(array('type' => 'start'), $options)). $options['text']. $this->wiki->addToken($this->rule, - array_merge(array('type' => 'end'), $options));*/ + array_merge(array('type' => 'end'), $options)); } }

« previous php.pear.cvs (#38714) next »