X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fgoto%2Fadmin%2Fsystems%2Fservices%2Fshares%2Fclass_goShareServer.inc;h=23f527b527b4b1608fe5e8344eaad83be7f2d36d;hb=f2811bc5fa0fe0afb9c18224e2bd40e6c9fccd7a;hp=b29744a66d16f0ae30006bb364c44711ef0ef023;hpb=362e2b9a81d3bde32512811ede7525ab017eead5;p=gosa.git diff --git a/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc b/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc index b29744a66..23f527b52 100644 --- a/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc +++ b/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc @@ -28,7 +28,7 @@ class goShareServer extends goService{ { goService::goService($config,$dn); - $this->DisplayName = _("File service"); + $this->DisplayName = _("File service (Shares)"); $tmp =array(); if(isset($this->attrs['goExportEntry'])){ @@ -95,7 +95,7 @@ class goShareServer extends goService{ if(isset($_POST['NFSsave']) && isset($this->o_subWindow) && is_object($this->o_subWindow)){ if(count($this->o_subWindow->check())>0){ foreach($this->o_subWindow->check() as $msg) { - print_red($msg); + msg_dialog::display(_("Error"), $msg, ERROR_DIALOG); } }else{ $this->o_subWindow->save_object(); @@ -155,7 +155,7 @@ class goShareServer extends goService{ { $fields = goService::getListEntry(); $fields['Message'] = _("File service (Shares)"); - $fields['AllowEdit'] = true; + #$fields['AllowEdit'] = true; return($fields); } @@ -226,15 +226,11 @@ class goShareServer extends goService{ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); $ldap->search("(|(gotoProfileServer=*|$id)(gotoShare=*|$id|*||*))", array("cn")); - $cnt= $ldap->count(); - if ($cnt){ - $msg= sprintf(_("The share can't be removed since it is still used by %d users:"), $cnt); - $msg.= "

"._("Please correct the share-/profile settings of these users"); - print_red($msg); + msg_dialog::display(_("Error"), msgPool::stillInUse(_("share"), msgPool::buildList($obj)), ERROR_DIALOG); } else { /* Finally remove it */