From 90f154c31c5da7c68a364c7ceb9efbfcfe5f2417 Mon Sep 17 00:00:00 2001 From: tomas Date: Sun, 20 Feb 2005 21:26:18 +0000 Subject: [PATCH] minor changes --- livesupport/modules/storageServer/var/GreenBox.php | 8 +++++--- livesupport/modules/storageServer/var/LocStor.php | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/livesupport/modules/storageServer/var/GreenBox.php b/livesupport/modules/storageServer/var/GreenBox.php index f63e81860..fca900df7 100644 --- a/livesupport/modules/storageServer/var/GreenBox.php +++ b/livesupport/modules/storageServer/var/GreenBox.php @@ -23,7 +23,7 @@ Author : $Author: tomas $ - Version : $Revision: 1.39 $ + Version : $Revision: 1.40 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/GreenBox.php,v $ ------------------------------------------------------------------------------*/ @@ -35,7 +35,7 @@ require_once "BasicStor.php"; * LiveSupport file storage module * * @author $Author: tomas $ - * @version $Revision: 1.39 $ + * @version $Revision: 1.40 $ * @see BasicStor */ class GreenBox extends BasicStor{ @@ -99,7 +99,9 @@ class GreenBox extends BasicStor{ { if(($res = $this->_authorize('write', $parid, $sessid)) !== TRUE) return $res; - if(!file_exists($mdataFileLP)){ $mdataFileLP = dirname(__FILE__).'/emptyMdata.xml'; } + if(!file_exists($mdataFileLP)){ + $mdataFileLP = dirname(__FILE__).'/emptyMdata.xml'; + } $oid = $this->bsPutFile( $parid, $fileName, '', $mdataFileLP, $gunid, 'webstream' ); diff --git a/livesupport/modules/storageServer/var/LocStor.php b/livesupport/modules/storageServer/var/LocStor.php index 482002fe1..fa70beba0 100644 --- a/livesupport/modules/storageServer/var/LocStor.php +++ b/livesupport/modules/storageServer/var/LocStor.php @@ -23,7 +23,7 @@ Author : $Author: tomas $ - Version : $Revision: 1.33 $ + Version : $Revision: 1.34 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/LocStor.php,v $ ------------------------------------------------------------------------------*/ @@ -484,7 +484,8 @@ class LocStor extends BasicStor{ $oid = $this->addObj($tmpFname , 'File', $parid); if(PEAR::isError($oid)) return $oid; $ac =& StoredFile::insert($this, $oid, '', '', - '../emptyPlaylist.xml', 'file', $playlistId, 'playlist' + dirname(__FILE__).'/emptyPlaylist.xml', + 'file', $playlistId, 'playlist' ); if(PEAR::isError($ac)){ $res = $this->removeObj($oid);