From 488d9fc7f1fa3d546e440e05225b32cf2bb48e6d Mon Sep 17 00:00:00 2001 From: sim Date: Thu, 13 Feb 2003 22:58:09 +0000 Subject: [PATCH] Fix the export function, so that it uses the current vfs calling convention (ie where all parameters to the vfs methods are passed in an array) --- calendar/inc/class.uicalendar.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 82eaf3f032..2164d2f711 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -1204,8 +1204,13 @@ // } $content = ExecMethod('calendar.boicalendar.export',$GLOBALS['HTTP_POST_VARS']['cal_id']); - $vfs->cd('/', True, array(RELATIVE_USER)); - $vfs->write($output_file, array (RELATIVE_USER), $content); + $vfs->cd(array('string' => '/', + 'relatives' => array(RELATIVE_USER) + )); + $vfs->write(array('string' => $output_file, + 'relatives' => array (RELATIVE_USER), + 'content' => $content + )); // $vfs->write($output_file, array (RELATIVE_USER_APP), $content); if($this->debug) {