Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17002 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17002 Rev 17018
Línea 353... Línea 353...
353
                    list($target_width, $target_height) = explode('x', $theme->imagesize_moodle);
353
                    list($target_width, $target_height) = explode('x', $theme->imagesize_moodle);
354
                    $filename = 'logo.png';
354
                    $filename = 'logo.png';
355
                    $crop_to_dimensions = false;
355
                    $crop_to_dimensions = false;
356
                    $unlink_source = true; 
356
                    $unlink_source = true; 
Línea 357... Línea 357...
357
                    
357
                    
358
                    if($image->uploadImageChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
358
                    if($image->uploadProcessChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
359
                        $network->logo = $filename;
359
                        $network->logo = $filename;
360
                    }
360
                    }
361
                } catch(\Throwable $e) {
361
                } catch(\Throwable $e) {
362
                    error_log($e->getTraceAsString());
362
                    error_log($e->getTraceAsString());
Línea 473... Línea 473...
473
                    list($target_width, $target_height) = explode('x', $theme->imagesize_navbar);
473
                    list($target_width, $target_height) = explode('x', $theme->imagesize_navbar);
474
                    $filename = 'navbar.png';
474
                    $filename = 'navbar.png';
475
                    $crop_to_dimensions = false;
475
                    $crop_to_dimensions = false;
476
                    $unlink_source = true;
476
                    $unlink_source = true;
Línea 477... Línea 477...
477
                    
477
                    
478
                    if($image->uploadImageChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
478
                    if($image->uploadProcessChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
479
                        $network->navbar = $filename;
479
                        $network->navbar = $filename;
480
                    }
480
                    }
481
                } catch(\Throwable $e) {
481
                } catch(\Throwable $e) {
482
                    error_log($e->getTraceAsString());
482
                    error_log($e->getTraceAsString());
Línea 595... Línea 595...
595
                    list($target_width, $target_height) = explode('x', $theme->imagesize_favico);
595
                    list($target_width, $target_height) = explode('x', $theme->imagesize_favico);
596
                    $filename = 'favico.png';
596
                    $filename = 'favico.png';
597
                    $crop_to_dimensions = false;
597
                    $crop_to_dimensions = false;
598
                    $unlink_source = true;
598
                    $unlink_source = true;
Línea 599... Línea 599...
599
                    
599
                    
600
                    if($image->uploadImageChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
600
                    if($image->uploadProcessChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
601
                       $network->favico = $filename;
601
                       $network->favico = $filename;
602
                    }
602
                    }
603
                } catch(\Throwable $e) {
603
                } catch(\Throwable $e) {
604
                    error_log($e->getTraceAsString());
604
                    error_log($e->getTraceAsString());
Línea 828... Línea 828...
828
                    $filename = 'moodle.png';
828
                    $filename = 'moodle.png';
829
                    list($target_width, $target_height) = explode('x', $theme->imagesize_moodle);
829
                    list($target_width, $target_height) = explode('x', $theme->imagesize_moodle);
830
                    $crop_to_dimensions = false;
830
                    $crop_to_dimensions = false;
831
                    $unlink_source = true;
831
                    $unlink_source = true;
Línea 832... Línea 832...
832
                    
832
                    
833
                    if($image->uploadImageChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
833
                    if($image->uploadProcessChangeSize($tmp_filename, $target_path, $network->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
834
                        $network->moodle_image = $filename;
834
                        $network->moodle_image = $filename;
835
                    }
835
                    }
836
                } catch(\Throwable $e) {
836
                } catch(\Throwable $e) {
837
                    error_log($e->getTraceAsString());
837
                    error_log($e->getTraceAsString());