diff --git a/bureau/admin/adm_add.php b/bureau/admin/adm_add.php index 55fed624..f12b8e9f 100755 --- a/bureau/admin/adm_add.php +++ b/bureau/admin/adm_add.php @@ -1,15 +1,10 @@
- - - - - + - + @@ -93,7 +85,7 @@ if (isset($error) && $error) { - + @@ -107,7 +99,7 @@ if (isset($error) && $error) {
- +
* +
*
*
 / 
*
"; echo ""._("Warning: you can't change it after the creation of the user.").""; ?> diff --git a/bureau/admin/adm_doadd.php b/bureau/admin/adm_doadd.php index bf98d9f3..abad0a05 100644 --- a/bureau/admin/adm_doadd.php +++ b/bureau/admin/adm_doadd.php @@ -1,9 +1,10 @@ raise("admin", _("All fields are mandatory")); + $err->raise("admin", _("Please fill all mandatory fields")); return false; } if (!$force) { if ($mail == "") { - $err->raise("admin", _("All fields are mandatory")); + $err->raise("admin", _("Please fill all mandatory fields")); return false; } //@todo remove cf functions.php @@ -641,17 +641,10 @@ class m_admin { // Triggering hooks $mem->su($uid); - // TODO: old hook method FIXME: when unused remove this - /* - foreach($classes as $c) { - if (method_exists($GLOBALS[$c],"alternc_add_member")) { - $GLOBALS[$c]->alternc_add_member(); - } - } - */ + $hooks->invoke("alternc_add_member"); // New hook way - $hooks->invoke("hook_admin_add_member", array(), array('quota')); // First !!! The quota !!! Etherway, we can't be sure to be able to create all + $hooks->invoke("hook_admin_add_member", array(), array('quota')); // First !!! The quota !!! Eitherway, we can't be sure to be able to create all $hooks->invoke("hook_admin_add_member"); $mem->unsu();