From: vincent@cubedesigners.com Date: Tue, 13 Sep 2022 17:04:14 +0000 (+0000) Subject: wait #5451 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=86ceb07aa7877af75a357cec22a2bc6cfd5eae94;p=cubeextranet.git wait #5451 @2 --- diff --git a/inc/ws/Controlleur/class.ws.flash.php b/inc/ws/Controlleur/class.ws.flash.php index 971453941..cac91a883 100644 --- a/inc/ws/Controlleur/class.ws.flash.php +++ b/inc/ws/Controlleur/class.ws.flash.php @@ -208,15 +208,12 @@ class wsFlash extends cubeFlashGateway } $fname = $this->args['fieldname'] . '_' . cubeFiles::tidyName($infos['name']); - $tmp = sys_get_temp_dir() . '/' . $fname; + $tmp = '/data1/extranet/tmp/' . $fname; move_uploaded_file($infos['tmp_name'], $tmp); $api = new ws3API(); $api->uploadThemeFile($this->args['theme_id'], $this->args['fieldname'], $tmp); - $dir = WS_FILES . '/themes3/' . $this->args['theme_id']; - $dest = $dir . '/' . $fname; - $this->xml->addChild('file', $fname); return; } diff --git a/inc/ws/Util/class.ws.ws3api.php b/inc/ws/Util/class.ws.ws3api.php index 6b333c065..078b3e280 100644 --- a/inc/ws/Util/class.ws.ws3api.php +++ b/inc/ws/Util/class.ws.ws3api.php @@ -36,7 +36,6 @@ class ws3API extends Zend_Rest_Client public function updateTheme($data) { global $core; - //file_put_contents(ROOT . '/debug_theme.txt', print_r($data, true)); return $this->restPut('/api/fluidbook-theme/' . $data['theme_id'], ['api_token' => $core->user->api_token, 'data' => $data]); }