Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1 Rev 15077
Línea 240... Línea 240...
240
                        
240
                        
241
                        try {
241
                        try {
Línea 242... Línea 242...
242
                            list($target_width, $target_height) = explode('x', $this->config['leaderslinked.image_sizes.post']);
242
                            list($target_width, $target_height) = explode('x', $this->config['leaderslinked.image_sizes.post']);
243
                            
243
                            
244
                            $filename = 'image-' .uniqid() . '.png';
244
                            $filename = 'image-' .uniqid() . '.png';
-
 
245
                           // $crop_to_dimensions = true;
-
 
246
                            // if(Image::uploadImage($tmp_filename, $target_path, $filename, $target_width, $target_height, $crop_to_dimensions)) {
245
                            $crop_to_dimensions = true;
247
                            
246
                            if(Image::uploadImage($tmp_filename, $target_path, $filename, $target_width, $target_height, $crop_to_dimensions)) {
248
                            if(Image::uploadImageWithoutCompletationSize($tmp_filename, $target_path, $filename, $target_width, $target_height)) {
247
                                $post->image = $filename;
249
                                $post->image = $filename;
248
                                $postMapper->update($post);
250
                                $postMapper->update($post);
249
                            }
251
                            }