From df209c0b0b56761809330f2d0e7a4c20e9cc63ef Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Jun 2005 11:44:49 +0000 Subject: [PATCH] fix for not set link_pathes --- infolog/inc/class.bolink.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infolog/inc/class.bolink.inc.php b/infolog/inc/class.bolink.inc.php index ddfb36b09f..8202401a06 100644 --- a/infolog/inc/class.bolink.inc.php +++ b/infolog/inc/class.bolink.inc.php @@ -165,7 +165,7 @@ { if ($this->debug) { - echo "

bolink.link('$app1',$id1,'".print_r($app2,true)."',$id2,'$remark',$owner,$lastmod)

\n"; + echo "

bolink.link('$app1',$id1,'".print_r($app2,true)."',".print_r($id2,true).",'$remark',$owner,$lastmod)

\n"; } if (!$app1 || !$app2 || $app1 == $app2 && $id1 == $id2) { @@ -658,7 +658,7 @@ } $fname = $this->vfs_path($app,$id,$file['name']); $tfname = ''; - if (!empty($file['path'])) + if (!empty($file['path']) && is_array($this->link_pathes) && count($this->link_pathes)) { $file['path'] = str_replace('\\\\','/',$file['path']); // vfs uses only '/' @reset($this->link_pathes); @@ -681,7 +681,6 @@ } } $this->vfs->override_acl = 1; - $this->vfs->cp(array( 'symlink' => !!$tfname, // try a symlink 'from' => $tfname ? $tfname : $file['tmp_name'],