PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Wiki » Bug #3336

HTML_SPECIALCHARS translation not taken into account

Details

Submitted2005-01-31 11:57 UTC
Frommartel at post dot pl
Assignedpmjones
StatusClosed
PackageText_Wiki
PHP Version5.0.3
OSGentoo 2004.0
Roadmaps(Not assigned)

Comments

[2005-01-31 11:57 UTC] martel at post dot pl

Description:
------------
HTML_SPECIALCHARS translation is not working at the moment since the if condition rules it out. Lines 10-16 of Text/Wiki/Render/Xhtml.php:

$type = $this->getConf('translate', null);

// are we translating html?
if ($type) {

// yes! get the translation table.
$xlate = get_html_translation_table($type);

Since HTML_SPECIALCHARS is equal 0 (and HTML_ENTITIES equals 1) there is no translation taking place when this type of conversion is choosen.

[2005-01-31 12:02 UTC] martel at aie dot pl

Oh my, I forgot to post my suggestion:

Line 13:
if ($type !== null) {

BTW: Also disabling translatehtml rule seems not operational at the moment.