Silence warning of GLOBALS usage in phpmd.
Extract class TreeSelect from generaltree.php into own file.
Obtain tl_class from the widget instead of using the value from eval.