Bug fix.

Removed $obj->def() to compatible with Joomla 1.5.