Skip to content

Commit

Permalink
Deak with the case where the text is empty
Browse files Browse the repository at this point in the history
- This allows the parser to not set text when there is no text given for a page
-- and thus allows *really* proper wikilink rendering in other dialects


git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@208161 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Justin Patrin committed Feb 28, 2006
1 parent 132b33c commit 1b4782d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Text/Wiki/Render/Xhtml/Wikilink.php
Expand Up @@ -162,6 +162,9 @@ function token($options)
$end = '<a'.$css.' href="'.$href.'">'.$new.'</a>';
}
}
if (!strlen($text)) {
$start .= $page;
}
if (isset($type)) {
switch ($type) {
case 'start':
Expand Down

0 comments on commit 1b4782d

Please sign in to comment.