Changeset 28916


Ignore:
Timestamp:
07/02/14 12:05:46 (5 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.7 (still compatible with Piwigo 2.6, but no more 2.5), change trigger_event into trigger_change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/meta/main.inc.php

    r28236 r28916  
    7474                        { 
    7575                        $meta[$row['metaname']] = $row['metaval']; 
    76                         $metaED[$row['metaname']]=trigger_event('AP_render_content', $meta[$row['metaname']]); 
     76                        $metaED[$row['metaname']]=trigger_change('AP_render_content', $meta[$row['metaname']]); 
    7777                        } 
    7878 
     
    142142                { 
    143143$metacontact = explode(',', $conf['contactmeta']); 
    144 $metakeyED=trigger_event('AP_render_content', $metacontact[0]); 
    145 $metadesED=trigger_event('AP_render_content', $metacontact[1]); 
     144$metakeyED=trigger_change('AP_render_content', $metacontact[0]); 
     145$metadesED=trigger_change('AP_render_content', $metacontact[1]); 
    146146                          if (!empty($metakeyED)) 
    147147                        { 
     
    170170        $metaKeyapap=$row['metaKeyap']; 
    171171        $metadesapap=$row['metadesap']; 
    172         $metaKeyapapED=trigger_event('AP_render_content', $metaKeyapap); 
    173         $metadesapED=trigger_event('AP_render_content', $metadesapap); 
     172        $metaKeyapapED=trigger_change('AP_render_content', $metaKeyapap); 
     173        $metadesapED=trigger_change('AP_render_content', $metadesapap); 
    174174                                } 
    175175                  if (isset($page['section']) and $page['section'] == 'additional_page') 
     
    202202    $result = pwg_query($query); 
    203203    $row = pwg_db_fetch_assoc($result); 
    204         $albumKeyED=trigger_event('AP_render_content', $row['metaKeycat']); 
     204        $albumKeyED=trigger_change('AP_render_content', $row['metaKeycat']); 
    205205    if (!empty($row['metaKeycat'])) 
    206206    { 
     
    215215    $result = pwg_query($query); 
    216216    $row = pwg_db_fetch_assoc($result); 
    217         $albumDesED=trigger_event('AP_render_content', $row['metadescat']); 
     217        $albumDesED=trigger_change('AP_render_content', $row['metadescat']); 
    218218    if (!empty($row['metadescat'])) 
    219219    { 
     
    237237    $result = pwg_query($query); 
    238238    $row = pwg_db_fetch_assoc($result); 
    239         $photoKeyED=trigger_event('AP_render_content', $row['metaKeyimg']); 
     239        $photoKeyED=trigger_change('AP_render_content', $row['metaKeyimg']); 
    240240    if (!empty($row['metaKeyimg'])) 
    241241    { 
     
    250250    $result = pwg_query($query); 
    251251    $row = pwg_db_fetch_assoc($result); 
    252         $photoDesED=trigger_event('AP_render_content', $row['metadesimg']); 
     252        $photoDesED=trigger_change('AP_render_content', $row['metadesimg']); 
    253253    if (!empty($row['metadesimg'])) 
    254254    { 
Note: See TracChangeset for help on using the changeset viewer.