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

From: Date: Tue, 28 Feb 2006 02:40:11 +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-38719@lists.php.net to get a copy of this message
justinpatrin Tue Feb 28 02:40:11 2006 UTC Modified files: /pear/Text_Wiki/Text/Wiki/Parse/Doku Wikilink.php Log: Re-add code to not set 'text' if no explicit text is given http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php?r1=1.5&r2=1.6&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.5 pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php:1.6 --- pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php:1.5 Tue Feb 28 01:55:09 2006 +++ pear/Text_Wiki/Text/Wiki/Parse/Doku/Wikilink.php Tue Feb 28 02:40:11 2006 @@ -12,7 +12,7 @@ * * @license LGPL * - * @version $Id: Wikilink.php,v 1.5 2006/02/28 01:55:09 justinpatrin Exp $ + * @version $Id: Wikilink.php,v 1.6 2006/02/28 02:40:11 justinpatrin Exp $ * */ @@ -99,12 +99,9 @@ // set the options $options = array( 'page' => $matches[1], - 'text' => isset($matches[4]) && strlen($matches[4]) ? $matches[4] : $matches[1], + 'text' => isset($matches[4]) && strlen($matches[4]) ? $matches[4] : '', 'anchor' => isset($matches[2]) && strlen($matches[2]) ? $matches[2] : '' ); - /*if ($options['text'] == $options['page']) { - $options['text'] = ''; - }*/ // create and return the replacement token and preceding text

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