@@ -58,8 +58,8 @@ discard block |
||
| 58 | 58 | foreach ($images as $image_src) |
| 59 | 59 | { |
| 60 | 60 | /** |
| 61 | - * Import the images |
|
| 62 | - */ |
|
| 61 | + * Import the images |
|
| 62 | + */ |
|
| 63 | 63 | |
| 64 | 64 | $image_src = str_replace("{{$import_schema}}", "'", $image_src); |
| 65 | 65 | $image_src_full = $gallery_url->path('import') . utf8_decode($image_src); |
@@ -160,21 +160,21 @@ discard block |
||
| 160 | 160 | $additional_sql_data = array(); |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * Event to trigger before mass update |
|
| 164 | - * |
|
| 165 | - * @event phpbbgallery.acpimport.update_image_before |
|
| 166 | - * @var array additional_sql_data array of additional sql_data |
|
| 167 | - * @var string file_link String with real file link |
|
| 168 | - * @since 1.2.0 |
|
| 169 | - */ |
|
| 163 | + * Event to trigger before mass update |
|
| 164 | + * |
|
| 165 | + * @event phpbbgallery.acpimport.update_image_before |
|
| 166 | + * @var array additional_sql_data array of additional sql_data |
|
| 167 | + * @var string file_link String with real file link |
|
| 168 | + * @since 1.2.0 |
|
| 169 | + */ |
|
| 170 | 170 | $vars = array('additional_sql_data', 'file_link'); |
| 171 | 171 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.acpimport.update_image_before', compact($vars))); |
| 172 | 172 | |
| 173 | 173 | if (($filetype[0] > $gallery_config->get('max_width')) || ($filetype[1] > $gallery_config->get('max_height'))) |
| 174 | 174 | { |
| 175 | 175 | /** |
| 176 | - * Resize oversize images |
|
| 177 | - */ |
|
| 176 | + * Resize oversize images |
|
| 177 | + */ |
|
| 178 | 178 | if ($gallery_config->get('allow_resize')) |
| 179 | 179 | { |
| 180 | 180 | $image_tools->resize_image($gallery_config->get('max_width'), $gallery_config->get('max_height')); |
@@ -187,13 +187,13 @@ discard block |
||
| 187 | 187 | $file_updated = (bool) $image_tools->resized; |
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | - * Event to trigger before mass update |
|
| 191 | - * |
|
| 192 | - * @event phpbbgallery.acpimport.update_image |
|
| 193 | - * @var array additional_sql_data array of additional sql_data |
|
| 194 | - * @var bool file_updated is file resized |
|
| 195 | - * @since 1.2.0 |
|
| 196 | - */ |
|
| 190 | + * Event to trigger before mass update |
|
| 191 | + * |
|
| 192 | + * @event phpbbgallery.acpimport.update_image |
|
| 193 | + * @var array additional_sql_data array of additional sql_data |
|
| 194 | + * @var bool file_updated is file resized |
|
| 195 | + * @since 1.2.0 |
|
| 196 | + */ |
|
| 197 | 197 | $vars = array('additional_sql_data', 'file_updated'); |
| 198 | 198 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.acpimport.update_image', compact($vars))); |
| 199 | 199 | |