Add method apply template to controller edit user

This commit is contained in:
Romain Neutron
2011-12-26 16:05:39 +01:00
parent 88135030b4
commit fbff35ea25

View File

@@ -106,12 +106,19 @@ class module_admin_route_users
if (is_null($v)) if (is_null($v))
$this->query_parms[$k] = false; $this->query_parms[$k] = false;
} }
$query = new User_Query($appbox);
$templates = $query
->only_templates(true)
->execute()->get_results();
return array( return array(
'users' => $this->results, 'users' => $this->results,
'parm' => $this->query_parms, 'parm' => $this->query_parms,
'invite_user' => $invite, 'invite_user' => $invite,
'autoregister_user' => $autoregister 'autoregister_user' => $autoregister,
'templates' => $templates
); );
} }