Fix logic mismatch between hasHook and renderHook
Fix logic mismatch between hasHook and renderHook

hasHook returns true if the controller has a hook() method or if there's a hook.php form

renderHook does something only if if there's a hook.php form, but not if there's only a hook() method.

Let's fix this.

a3020/concrete5,mlocati/concrete5,haeflimi/concrete5,deek87/concrete5,hissy/concrete5,rikzuiderlicht/concrete5,mlocati/concrete5,mlocati/concrete5,haeflimi/concrete5,mainio/concrete5,MrKarlDilkington/concrete5,KorvinSzanto/concrete5,hissy/concrete5,concrete5/concrete5,haeflimi/concrete5,biplobice/concrete5,triplei/concrete5-8,jaromirdalecky/concrete5,concrete5/concrete5,acliss19xx/concrete5,KorvinSzanto/concrete5,hissy/concrete5,olsgreen/concrete5,triplei/concrete5-8,rikzuiderlicht/concrete5,deek87/concrete5,olsgreen/concrete5,mainio/concrete5,biplobice/concrete5,rikzuiderlicht/concrete5,deek87/concrete5,acliss19xx/concrete5,mlocati/concrete5,jaromirdalecky/concrete5,MrKarlDilkington/concrete5,deek87/concrete5,biplobice/concrete5,olsgreen/concrete5,concrete5/concrete5,triplei/concrete5-8,MrKarlDilkington/concrete5,jaromirdalecky/concrete5,biplobice/concrete5,concrete5/concrete5,KorvinSzanto/concrete5,haeflimi/concrete5,a3020/concrete5,jaromirdalecky/concrete5,hissy/concrete5,mainio/concrete5,acliss19xx/concrete5