cvs: pear /Text_Wiki/Text/Wiki/Render/Plain Interwiki.php

From: Date: Sat, 25 Feb 2006 05:16:54 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Render/Plain Interwiki.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38580@lists.php.net to get a copy of this message
toggg Sat Feb 25 05:16:54 2006 UTC Modified files: /pear/Text_Wiki/Text/Wiki/Render/Plain Interwiki.php Log: Complete the rendering with indication of (url) or (site:page) http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki/Render/Plain/Interwiki.php?r1=1.2&r2=1.3&diff_format=u Index: pear/Text_Wiki/Text/Wiki/Render/Plain/Interwiki.php diff -u pear/Text_Wiki/Text/Wiki/Render/Plain/Interwiki.php:1.2 pear/Text_Wiki/Text/Wiki/Render/Plain/Interwiki.php:1.3 --- pear/Text_Wiki/Text/Wiki/Render/Plain/Interwiki.php:1.2 Sat Sep 25 19:05:14 2004 +++ pear/Text_Wiki/Text/Wiki/Render/Plain/Interwiki.php Sat Feb 25 05:16:54 2006 @@ -17,7 +17,13 @@ function token($options) { - return $options['text']; + if (isset($options['url'])) { + // calculated by the parser (e.g. Mediawiki) + $href = $options['url']; + } else { + $href = $options['site'] . ':' . $options['page']; + } + return $options['text'] . ' (' . $href . ')'; } } -?> \ No newline at end of file +?>

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