diff --git a/plugins/admin/systems/class_glpiAttachmentPool.inc b/plugins/admin/systems/class_glpiAttachmentPool.inc
index 896ed980bb6407af1f6a73f3dd47c8c22ab5e4d0..8b0300d6f65669bbe48af73d96e160f2e94938d8 100644 (file)
}else{
$this->parent->handle->deleteAttachment($this->delAttach);
+ @unlink("/etc/gosa/glpi/".$this->filename);
$attach = $this->parent->handle->getAttachments();
}
}
$listhead = "<div style='background:#F0F0F9;padding:5px;'>".
" <input class='center' type='image'
- src='images/new.png' align='middle' title='"._("Create new attachment")."'
+ src='images/fai_new_template.png' align='middle' title='"._("Create new attachment")."'
name='new_attach' alt='"._("New Attachment"). "'> ".
"</div>";
/* Simple check */
function check()
{
- $message = array();
+ /* Call common method to give check the hook */
+ $message= plugin::check();
+
if($this->edit){
/* check if given name is already in use */