$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');
$maxHeight = max($size[1], $maxHeight);
break;
}
+ $maxWidth = round($maxWidth * 20) / 20;
+ $maxHeight = round($maxHeight * 20) / 20;
wsLinks::getLinksAndRulersFromFile($this->args['book_id'], $links, $rulers);