From 13e7e765757218b547a5f30a10c2e6b32d230849 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Mon, 15 Sep 2008 14:01:57 +0000 Subject: [PATCH] MDL-15760 - move boxnet folder creation from prepare_package into send_package --- portfolio/type/boxnet/lib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/portfolio/type/boxnet/lib.php b/portfolio/type/boxnet/lib.php index e90eb5190f..287844277c 100644 --- a/portfolio/type/boxnet/lib.php +++ b/portfolio/type/boxnet/lib.php @@ -15,6 +15,10 @@ class portfolio_plugin_boxnet extends portfolio_plugin_push_base { } public function prepare_package() { + // don't do anything for this plugin, we want to send all files as they are. + } + + public function send_package() { // if we need to create the folder, do it now if ($newfolder = $this->get_export_config('newfolder')) { if (!$created = $this->boxclient->createFolder($newfolder, array('share' => $this->get_export_config('sharefolder')))) { @@ -23,10 +27,6 @@ class portfolio_plugin_boxnet extends portfolio_plugin_push_base { $this->folders[$created['folder_id']] = $created['folder_name']; $this->set_export_config(array('folder' => $created['folder_id'])); } - // don't do anything else for this plugin, we want to send all files as they are. - } - - public function send_package() { foreach ($this->exporter->get_tempfiles() as $file) { $return = $this->boxclient->uploadFile( array( -- 2.39.5