Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / library / HTMLPurifier / AttrTransform / BdoDir.php
blob4d1a05665e46e35e8be54465d61afcada111cedb
1 <?php
3 // this MUST be placed in post, as it assumes that any value in dir is valid
5 /**
6 * Post-trasnform that ensures that bdo tags have the dir attribute set.
7 */
8 class HTMLPurifier_AttrTransform_BdoDir extends HTMLPurifier_AttrTransform
11 public function transform($attr, $config, $context) {
12 if (isset($attr['dir'])) return $attr;
13 $attr['dir'] = $config->get('Attr.DefaultTextDir');
14 return $attr;
19 // vim: et sw=4 sts=4