Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17297 | Rev 17299 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17297 Rev 17298
Línea 910... Línea 910...
910
                    list($target_width_str, $target_height_str) = explode('x', $this->config['leaderslinked.image_sizes.company_image_size']);
910
                    list($target_width_str, $target_height_str) = explode('x', $this->config['leaderslinked.image_sizes.company_image_size']);
911
                    $target_width = (int)$target_width_str;
911
                    $target_width = (int)$target_width_str;
912
                    $target_height = (int)$target_height_str;
912
                    $target_height = (int)$target_height_str;
Línea 913... Línea 913...
913
 
913
 
914
                    // Generar nombres de archivo únicos
914
                    // Generar nombres de archivo únicos
915
                    $source    = $storage->getTmpFilename();
915
                    $source = $storage->getTmpFilename();
916
                    $filename           = 'company-image-' . $company->uuid . '.png';
916
                    $filename = 'company-image-' . $company->uuid . '.png';
Línea 917... Línea 917...
917
                    $target_filename    = $storage->composePathToFilename(Storage::TYPE_USER, $company->uuid, $filename);
917
                    $target_filename    = $storage->composePathToFilename(Storage::TYPE_USER, $company->uuid, $filename);
918
 
918
 
919
                    // Subir y redimensionar la imagen
919
                    // Subir y redimensionar la imagen
Línea 996... Línea 996...
996
                }
996
                }
997
            }
997
            }
Línea 998... Línea 998...
998
 
998
 
999
            return new JsonModel([
999
            return new JsonModel([
1000
                'success'   => true,
1000
                'success'   => true,
-
 
1001
                'data' => $storage->getCompanyImage($company),
Línea 1001... Línea 1002...
1001
                'data' => $storage->getCompanyImage($company)
1002
                'company' => $company
1002
 
1003
 
Línea 1003... Línea 1004...
1003
            ]);
1004
            ]);