Selaa lähdekoodia

Allow see the uploaded images with extra fields - refs BT#9089

Angel Fernando Quiroz Campos 10 vuotta sitten
vanhempi
commit
109e7e846d
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      main/admin/resume_session.php

+ 7 - 1
main/admin/resume_session.php

@@ -250,11 +250,17 @@ foreach ($sessionFields as $field) {
                     case ExtraField::FIELD_TYPE_FILE_IMAGE:
                         if ($sesionValueData !== false && !empty($sesionValueData['field_value'])) {
                             if (file_exists(api_get_path(SYS_CODE_PATH) . $sesionValueData['field_value'])) {
-                                echo Display::img(
+                                $image = Display::img(
                                     api_get_path(WEB_CODE_PATH) . $sesionValueData['field_value'],
                                     $field['field_display_text'],
                                     array('width' => '300')
                                 );
+                                
+                                echo Display::url(
+                                    $image,
+                                    api_get_path(WEB_CODE_PATH) . $sesionValueData['field_value'],
+                                    array('target' => '_blank')
+                                );
                             }
                         }
                         break;