From: vincent@cubedesigners.com Date: Thu, 20 May 2021 18:29:41 +0000 (+0000) Subject: wait #4475 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=08ba8449280d5433b8d59e333fc020cc11141148;p=cubeextranet.git wait #4475 @1 --- diff --git a/inc/ws/Controlleur/class.ws.flash.php b/inc/ws/Controlleur/class.ws.flash.php index 48a1fe7ce..e0fdf2516 100644 --- a/inc/ws/Controlleur/class.ws.flash.php +++ b/inc/ws/Controlleur/class.ws.flash.php @@ -211,12 +211,13 @@ class wsFlash extends cubeFlashGateway $dir = WS_THEMES . '/' . $this->args['theme_id'] . '/'; $dest = $dir . $fname; - if (!file_exists(WS_THEMES . '/' . $this->args['theme_id'])) { mkdir(WS_THEMES . '/' . $this->args['theme_id'], 0755, true); } move_uploaded_file($infos['tmp_name'], $dest); + $api = new ws3API(); + $api->uploadThemeField($this->args['theme_id'], $this->args['fieldname'], $dest); if (isset($this->args['type']) && $this->args['type'] == 'favicon') { $icotool = new cubeCommandLine('icotool'); @@ -618,6 +619,8 @@ class wsFlash extends cubeFlashGateway $maxHeight = max($size[1], $maxHeight); break; } + $maxWidth = round($maxWidth * 20) / 20; + $maxHeight = round($maxHeight * 20) / 20; wsLinks::getLinksAndRulersFromFile($this->args['book_id'], $links, $rulers);