|
@@ -25,15 +25,19 @@ class Save
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public function copy($file, $key = 1)
|
|
|
+ public function copy($file = false, $key = 1)
|
|
|
{
|
|
|
- $image['file'] = $file;
|
|
|
- $image['key'] = $key;
|
|
|
- $handle = new Handle($image);
|
|
|
+ if ($this->output) {
|
|
|
+ Dever::outDiy($this->output);
|
|
|
+ } else {
|
|
|
+ $image['file'] = $file;
|
|
|
+ $image['key'] = $key;
|
|
|
+ $handle = new Handle($image);
|
|
|
|
|
|
- $this->output = $handle->copy();
|
|
|
- unset($this->output['file']);
|
|
|
- return $this->output;
|
|
|
+ $this->output = $handle->copy();
|
|
|
+ unset($this->output['file']);
|
|
|
+ return $this->output;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public function copys($file, $key = 1)
|