Changeset 32107


Ignore:
Timestamp:
Apr 17, 2020, 12:32:08 AM (4 years ago)
Author:
ddtddt
Message:

[Meta_OG] add support page contact and AP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/meta_og/admin.php

    r32106 r32107  
    120120        }
    121121        $metaog['path']='';
    122         $tab_picture = pwg_query('SELECT id,name,path FROM ' . IMAGES_TABLE . ' order by id;');
     122        $tab_picture = pwg_query('SELECT id,file,name,path FROM ' . IMAGES_TABLE . ' order by id;');
    123123        if (pwg_db_num_rows($tab_picture)) {
    124124        while ($info_photos = pwg_db_fetch_assoc($tab_picture)) {
     
    130130                                $path="";
    131131                        }
    132                         $items = array(
    133                                         'PHOTOID' => $info_photos['id'],
    134                                         'PHOTOINFO' => $info_photos['id'].' - '.$info_photos['name'],
    135                                         'PHOTOSELECT' => $select,
    136                                 );
     132          if(empty($info_photos['name'])){$legend=$info_photos['file'];}else{$legend=$info_photos['name'];}
     133                $items = array(
     134                  'PHOTOID' => $info_photos['id'],
     135                  'PHOTOINFO' => $info_photos['id'].' - '.$legend,
     136                  'PHOTOSELECT' => $select,
     137                );
    137138                        $template->append('info_photos', $items);
    138139        }
Note: See TracChangeset for help on using the changeset viewer.