- copy( $this->filename .'.tmp' , $this->filename);
- unlink( $this->filename .'.tmp');
+ if (!@copy($this->filename . '.tmp' , $this->filename)) {
+ return $this->set_error($this->filename . ':' . _("Unable to update"));
+ }
+ @unlink($this->filename . '.tmp');