Changeset 32136


Ignore:
Timestamp:
Apr 29, 2020, 4:03:32 PM (4 years ago)
Author:
ddtddt
Message:

[manage_properties_photos]

Location:
extensions/manage_properties_photos
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/manage_properties_photos/admin.php

    r32135 r32136  
    235235                        $idexif = (isset($conf['mpp_idexif'])) ? $conf['mpp_idexif'] : $idexifone['id'];
    236236                        $filename = pwg_db_fetch_assoc(pwg_query("SELECT path FROM " . IMAGES_TABLE . " WHERE id = '".$idexif."';"));
     237                  if(empty($filename['path'])){
     238                          $_SESSION['page_errors'] = array(l10n('reference photo id doesn\'t exist please update'));
     239                  }else{       
    237240                        $exif = exif_read_data($filename['path']);
    238241                                foreach ($exif as $key => $section){
     
    276279                          }
    277280                        }
     281                  }
    278282        }
    279283       
     
    425429                        conf_update_param('mpp_max_fields', $_POST['mppmaxfield']);
    426430                        conf_update_param('mpp_idexif', $_POST['mppitidexif']);
    427                         header('Location:'.ADD_PROP_PHOTO_ADMIN . '-config');
     431                        $_SESSION['page_infos'] = array(l10n('Information data registered in database'));
     432                        redirect(ADD_PROP_PHOTO_ADMIN . '-config');
    428433                }
    429434                break;
  • extensions/manage_properties_photos/language/en_UK/plugin.lang.php

    r32135 r32136  
    5454$lang['The reference photo doesn\'t have exif'] = 'The reference photo doesn\'t have exif';
    5555$lang['The reference photo doesn\'t have IPTC'] = 'The reference photo doesn\'t have IPTC';
     56$lang['reference photo id doesn\'t exist please update'] = 'reference photo id doesn\'t exist please update';
  • extensions/manage_properties_photos/language/fr_FR/plugin.lang.php

    r32135 r32136  
    5252$lang['The reference photo doesn\'t have exif'] = 'La photo de référence ne possède pas d\'exif';
    5353$lang['The reference photo doesn\'t have IPTC'] = 'La photo de référence ne possède pas IPTC';
     54$lang['reference photo id doesn\'t exist please update'] = 'l\'id de reference photo n\'existe pas merci de mettre à jour';
Note: See TracChangeset for help on using the changeset viewer.