cvs: pear /Text_Wiki package.xml /Text_Wiki/Text/Wiki/Render/Xhtml Image.php

From: Date: Fri, 11 Jun 2004 17:20:33 +0000
Subject: cvs: pear /Text_Wiki package.xml /Text_Wiki/Text/Wiki/Render/Xhtml Image.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20525@lists.php.net to get a copy of this message
pmjones Fri Jun 11 13:20:33 2004 EDT Modified files: /pear/Text_Wiki package.xml /pear/Text_Wiki/Text/Wiki/Render/Xhtml Image.php Log: image now accepts URLs in "link" attribute updated package.xml with same note http://cvs.php.net/diff.php/pear/Text_Wiki/package.xml?r1=1.10&r2=1.11&ty=u Index: pear/Text_Wiki/package.xml diff -u pear/Text_Wiki/package.xml:1.10 pear/Text_Wiki/package.xml:1.11 --- pear/Text_Wiki/package.xml:1.10 Fri Jun 11 11:00:03 2004 +++ pear/Text_Wiki/package.xml Fri Jun 11 13:20:33 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0"> -<!-- $Id: package.xml,v 1.10 2004/06/11 15:00:03 pmjones Exp $ --> +<!-- $Id: package.xml,v 1.11 2004/06/11 17:20:33 pmjones Exp $ --> <package version="1.0"> <name>Text_Wiki</name> <summary>Abstracts parsing and rendering rules for Wiki markup in structured plain text.</summary> @@ -14,12 +14,14 @@ </maintainer> </maintainers> <release> - <version>0.19.2</version> + <version>0.19.3</version> <date>2004-06-11</date> <license>PHP License</license> <state>alpha</state> <notes> - * Fixed bugs 1571 and 1573 (include parser and embed xhtml render) + * Fixed bug 1616 (blockquote parsing) + * Image markup now always renders with an "alt" tag (per Stephane Le Solliec) + * Image markup "link" attribute now accepts URLs in addition to WikiPageNames </notes> <filelist> <file role="php" name="Text/Wiki.php" /> http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php?r1=1.2&r2=1.3&ty=u Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php diff -u pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php:1.2 pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php:1.3 --- pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php:1.2 Fri Jun 11 12:53:01 2004 +++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Image.php Fri Jun 11 13:20:33 2004 @@ -26,9 +26,15 @@ $options['src'] . '"'; if (isset($options['attr']['link'])) { - // this image has a wikilink - $href = $this->_wiki->getRuleConf('wikilink', 'view_url') . - $options['attr']['link']; + // this image has a link + + if (strpos($options['attr']['link'], '://')) { + // it's a URL + $href = $options['attr']['link']; + } else { + $href = $this->wiki->getRenderConf('xhtml', 'wikilink', 'view_url') . + $options['attr']['link']; + } } else { // image is not linked $href = null;

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