diff --git a/gosa-plugins/phpgw/personal/connectivity/phpgw/class_phpgwAccount.inc b/gosa-plugins/phpgw/personal/connectivity/phpgw/class_phpgwAccount.inc
index 0e2ac36b1fd0d4ce411b765d16b3e72617fed403..306d116bbe810025b92736f4b472d1bdb21593a5 100644 (file)
{
/* Definitions */
var $plHeadline= "PHPGroupware";
- var $plDescription= "This does something";
+ var $plDescription= "Manage PHPGroupware user settings";
/* GW attributes */
var $phpgwAccountExpires= "-1";
/* Load attributes */
foreach($this->attributes as $val){
- $smarty->assign("$val", $this->$val);
+ $smarty->assign("$val", set_post( $this->$val));
}
if ($this->is_account){
$smarty->assign("phpgwState", "checked");
$this->cleanup();
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PHPgw account with dn '%s' failed."),$this->dn));
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class()));
+ }
new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}
- show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PHPgw account with dn '%s' failed."),$this->dn));
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
+ }
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account){
static function plInfo()
{
return (array(
- "plShortName" => _("PHP GW"),
- "plDescription" => _("PHP GW account settings")." : <u>"._("Connectivity addon")."</u>",
+ "plShortName" => _("PHPGroupware"),
+ "plDescription" => _("PHPGroupware account settings")." ("._("Connectivity add-on").")",
"plSelfModify" => TRUE,
"plDepends" => array("user"),
"plPriority" => 24, // Position in tabs
"plSection" => array("personal" => _("My account")),
"plCategory" => array("users"),
"plOptions" => array(),
+ "plRequirements"=> array(
+ 'ldapSchema' => array('phpgwAccount' => ''),
+ 'onFailureDisablePlugin' => array(get_class())
+ ),
"plProvidedAcls" => array()
));