Línea 260... |
Línea 260... |
260 |
$topic_tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . $topic_filename;
|
260 |
$topic_tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . $topic_filename;
|
261 |
file_put_contents($topic_tmp_filename, $fileBase64Content);
|
261 |
file_put_contents($topic_tmp_filename, $fileBase64Content);
|
Línea 262... |
Línea 262... |
262 |
|
262 |
|
Línea 263... |
Línea -... |
263 |
list($target_width, $target_height) = explode('x', $this->config['leaderslinked.image_sizes.microlearning_image_size']);
|
- |
|
264 |
|
263 |
list($target_width, $target_height) = explode('x', $this->config['leaderslinked.image_sizes.microlearning_image_size']);
|
265 |
$topic_filename = substr($topic_filename, 0, strrpos($topic_filename, '.')) . '.png';
|
264 |
|
266 |
$crop_to_dimensions = false;
|
265 |
$crop_to_dimensions = false;
|
267 |
if(Image::uploadImage($topic_tmp_filename, $target_path, $topic_filename, $target_width, $target_height, $crop_to_dimensions )) {
|
266 |
if(Image::uploadImage($topic_tmp_filename, $target_path, $topic_filename, $target_width, $target_height, $crop_to_dimensions )) {
|
268 |
$topic->image = basename($topic_filename);
|
267 |
$topic->image = basename($topic_filename);
|