Home » Text » Text_Wiki » Bug #3336
HTML_SPECIALCHARS translation not taken into account
Details
| Submitted | 2005-01-31 11:57 UTC |
|---|---|
| From | martel at post dot pl |
| Assigned | pmjones |
| Status | Closed |
| Package | Text_Wiki |
| PHP Version | 5.0.3 |
| OS | Gentoo 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.