From: hickert Date: Mon, 16 Apr 2007 13:09:46 +0000 (+0000) Subject: Some changes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=73084cf5389e3b408924613f87389ae9c288ee48;p=gosa.git Some changes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6057 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index cc5527e6c..83a10850b 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -24,7 +24,6 @@ class gotomasses extends plugin /* Include config object */ $this->config= $config; - $this->load_csv_data(); } @@ -94,13 +93,13 @@ class gotomasses extends plugin { if($data == NULL){ if(!file_exists($this->file_to_read) || !is_readable($this->file_to_read)){ - print_red(sprintf(_("Can't locate or read goto masses csv storage file '%s'."),$this->file_to_read)); + print_red(sprintf(_("Can't locate or read csv storage file '%s'."),$this->file_to_read)); return(FALSE); } $fp = @fopen($this->file_to_read,"r"); if(!$fp){ - print_red(sprintf(_("Can't read goto masses csv storage file '%s'."),$this->file_to_read)); + print_red(sprintf(_("Can't read csv storage file '%s'."),$this->file_to_read)); return(FALSE); } @@ -138,13 +137,11 @@ class gotomasses extends plugin function save_csv_data() { if(!file_exists($this->file_to_read) || !is_writeable($this->file_to_read)){ - print_red(sprintf(_("Can't locate or write goto masses csv storage file '%s'."),$this->file_to_read)); + print_red(sprintf(_("Can't locate or write csv storage file '%s'."),$this->file_to_read)); }else{ - $fp = @fopen($this->file_to_read,"w"); - if(!$fp){ - print_red(sprintf(_("Can't write goto masses csv storage file '%s'."),$this->file_to_read)); + print_red(sprintf(_("Can't write csv storage file '%s'."),$this->file_to_read)); }else{ $data = ""; foreach($this->contents as $val){