Ignore:
Timestamp:
Mar 26, 2021, 6:51:20 AM (4 years ago)
Author:
ddtddt
Message:

[manage_properties_photos] add activity

Location:
extensions/manage_properties_photos
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/manage_properties_photos/language/en_UK/plugin.lang.php

    r32391 r32551  
    5757$lang['IPTC field can\'t be empty'] = 'IPTC field can\'t be empty';
    5858$lang['Show Image Id'] = 'Show Image Id';
    59 $lang['Hide Image Id'] = 'Hide Image Id';
     59$lang['Delete photo'] = 'Delete photo';
  • extensions/manage_properties_photos/language/fr_FR/plugin.lang.php

    r32391 r32551  
    5656$lang['Show Image Id'] = 'Montrer l\'ID de l\'Image';
    5757$lang['Hide Image Id'] = 'Cacher l\'ID de l\'Image';
     58$lang['Delete photo'] = 'supprimer les photos';
  • extensions/manage_properties_photos/main.inc.php

    r32550 r32551  
    7373                $tab_delete_photos[]=$delete_photos['id_img'];
    7474          }
     75          global $user,$conf;
     76          $user['id']=$conf['webmaster_id'];
    7577          delete_elements($tab_delete_photos, true);
    7678          pwg_query('DELETE FROM '.ADD_PROP_PHOTO_DATA_TABLE.' WHERE id_img IN ('.implode(',', $tab_delete_photos).');');
    7779          pwg_query('DELETE FROM '.ADD_PROP_PHOTO_DATADATE_TABLE.' WHERE id_img IN ('.implode(',', $tab_delete_photos).');');
    7880          invalidate_user_cache();
     81          unset($user);
    7982        }
    8083  }
Note: See TracChangeset for help on using the changeset viewer.