cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Image.php
| From: | Paul Jones | Date: | Tue, 22 Feb 2005 15:10:30 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Image.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29669@lists.php.net to get a copy of this message | ||
pmjones Tue Feb 22 10:10:30 2005 EDT
Modified files:
/pear/Text_Wiki/Text/Wiki/Render/Xhtml Image.php
Log:
added url_base conf option
http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php?r1=1.12&r2=1.13&ty=u
Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php
diff -u pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php:1.12
pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php:1.13
--- pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php:1.12 Sat Sep 25 15:05:14 2004
+++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php Tue Feb 22 10:10:30 2005
@@ -3,6 +3,7 @@
var $conf = array(
'base' => '/',
+ 'url_base' => null,
'css' => null,
'css_link' => null
);
@@ -39,8 +40,8 @@
// yes, the image is clickable.
// are we linked to a URL or a wiki page?
if (strpos($options['attr']['link'], '://')) {
- // it's a URL
- $href = $options['attr']['link'];
+ // it's a URL, prefix the URL base
+ $href = $this->getConf('url_base') .
$options['attr']['link'];
} else {
// it's a WikiPage; assume it exists.
/** @todo This needs to honor sprintf wikilinks (pmjones) */