webservice MDL-17135 code cleaning

This commit is contained in:
jerome
2009-10-15 02:34:21 +00:00
parent c5e4f81d9a
commit da42e89074
2 changed files with 43 additions and 78 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ admin_externalpage_setup('externalserviceusers');
admin_externalpage_print_header();
/// Get the user_selector we will need.
$potentialuserselector = new service_potential_user_selector('addselect', array('serviceid' => $id));
$alloweduserselector = new service_allowed_user_selector('removeselect', array('serviceid' => $id));
$potentialuserselector = new service_user_selector('addselect', array('serviceid' => $id, 'displayallowedusers' => 0));
$alloweduserselector = new service_user_selector('removeselect', array('serviceid' => $id, 'displayallowedusers' => 1));
/// Process incoming user assignments to the service
if (optional_param('add', false, PARAM_BOOL) && confirm_sesskey()) {