fixes copy function

This commit is contained in:
daeks
2013-04-11 20:57:59 +02:00
parent 08aa244cd6
commit e9caa24bd1

View File

@@ -79,7 +79,11 @@ class Filemanager extends Common {
// Duplicate
if(!empty($get['destination'])){
$get['destination'] = Filemanager::cleanPath( $get['destination'] );
$this->destination = $this->root . $get['destination'];
if($this->isAbsPath($get['path'])) {
$this->destination = $get['destination'];
} else {
$this->destination = $this->root . $get['destination'];
}
}
}