Fixed Templatehook resource_controls

xf_phantom

Well-known member
In template resource_view the hook resource_controls is missing the resource param

Code:
<xen:hook name="resource_controls" />
should be
Code:
<xen:hook name="resource_controls" params="{xen:array 'resource={$resource}'}" />

It's not really needed, because it can be accessed via the template object, but all the other hooks in the template have the param, so it was little bit confusing because i tried to get it via the hookparam and it didn't work (inconstance)
 
Top Bottom