Convert local to my
Remove use of $_
Formal parameter conversion
Added formal parameters to functions
Make ui_date_input themeable http://sourceforge.net/p/webadmin/bugs/4331/