Changeset 32108


Ignore:
Timestamp:
Apr 17, 2020, 9:12:26 PM (4 years ago)
Author:
ddtddt
Message:

[read_metadata]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/read_metadata/admin.php

    r31748 r32108  
    6767}
    6868
    69     $tab_picture = pwg_query('SELECT id,name FROM ' . IMAGES_TABLE . ' order by id;');
     69    $tab_picture = pwg_query('SELECT id,file,name FROM ' . IMAGES_TABLE . ' order by id;');
    7070        if (pwg_db_num_rows($tab_picture)) {
    7171        while ($info_photos = pwg_db_fetch_assoc($tab_picture)) {
     72             if(empty($info_photos['name'])){$legend=$info_photos['file'];}else{$legend=$info_photos['name'];}
    7273                        $items = array(
    7374                                        'PHOTOID' => $info_photos['id'],
    74                                         'PHOTOINFO' => $info_photos['id'].' - '.$info_photos['name'],
     75                                        'PHOTOINFO' => $info_photos['id'].' - '.$legend,
    7576                                );
    7677                        $template->append('info_photos', $items);
     
    148149       
    149150        /*Exif*/
    150         $exif = read_exif_data($filename);
     151        $exif = exif_read_data($filename);
    151152        foreach ($exif as $key => $section){
    152153                if(is_array($section)){
Note: See TracChangeset for help on using the changeset viewer.