Changeset 9453 for extensions


Ignore:
Timestamp:
Mar 1, 2011, 4:19:44 PM (13 years ago)
Author:
plg
Message:

if a pending photo belongs to an album that has been deleted, the photo becomes orphan and it does not display an error on admin_pendings, but a message "no album, this photo is orphan"

Location:
extensions/community
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/admin_pendings.php

    r9372 r9453  
    215215    $dimensions = $websize_props;
    216216  }
     217
     218  $album = null;
     219  if (isset($category_for_image[ $row['id'] ]))
     220  {
     221    $album = $category_for_image[ $row['id'] ];
     222  }
     223  else
     224  {
     225    $album = '<em>'.l10n('No album, this photo is orphan').'</em>';
     226  }
    217227 
    218228  $template->append(
     
    229239      'FILE' => $row['file'],
    230240      'DATE_CREATION' => format_date($row['date_creation']),
    231       'ALBUM' => $category_for_image[ $row['id'] ],
     241      'ALBUM' => $album,
    232242      )
    233243    );
  • extensions/community/language/en_UK/plugin.lang.php

    r9372 r9453  
    5050$lang['%d photos uploaded into album "%s"'] = '%d photos uploaded into album "%s"';
    5151$lang['Hi administrators,'] = 'Hi administrators,';
     52
     53$lang['No album, this photo is orphan'] = 'No album, this photo is orphan';
    5254?>
  • extensions/community/language/fr_FR/plugin.lang.php

    r9372 r9453  
    5252$lang['%d photos uploaded into album "%s"'] = '%d photos ajoutée à l\'album "%s"';
    5353$lang['Hi administrators,'] = 'Bonjours chers administrateurs,';
     54
     55$lang['No album, this photo is orphan'] = 'Aucun album, cette photo est orpheline';
    5456?>
Note: See TracChangeset for help on using the changeset viewer.