Changeset 26848


Ignore:
Timestamp:
01/18/14 13:48:08 (6 years ago)
Author:
mistic100
Message:

keep old trigger functions (PHP 5.2 issue)

Location:
extensions/Comments_on_Albums/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/admin.php

    r26089 r26848  
    182182      'ID' => $row['id'], 
    183183      'U_PICTURE' => get_root_url().'admin.php?page=album-'.$row['category_id'], 
    184       'CATEGORY_NAME' => trigger_change('render_category_name', $row['name']), 
     184      'CATEGORY_NAME' => trigger_event('render_category_name', $row['name']), 
    185185      'TN_SRC' => $thumb, 
    186       'AUTHOR' => trigger_change('render_comment_author', $author_name), 
     186      'AUTHOR' => trigger_event('render_comment_author', $author_name), 
    187187      'DATE' => format_date($row['date'], true), 
    188       'CONTENT' => trigger_change('render_comment_content', $row['content'], 'album'), 
     188      'CONTENT' => trigger_event('render_comment_content', $row['content'], 'album'), 
    189189      'IS_PENDING' => ('false' == $row['validated']), 
    190190      ) 
  • extensions/Comments_on_Albums/trunk/include/coa_albums.php

    r26143 r26848  
    156156 
    157157  // allow plugins to notify what's going on 
    158   trigger_notify('user_comment_insertion', 
     158  trigger_action('user_comment_insertion', 
    159159      array_merge($comm, array('action'=>$comment_action) ), 
    160160      'album' 
     
    284284        'ID' => $row['id'], 
    285285        'AUTHOR' => trigger_change('render_comment_author', $row['author']), 
    286         'DATE' => format_date($row['date'], true), 
    287         'CONTENT' => trigger_change('render_comment_content', $row['content'], 'album'), 
     286        'DATE' => trigger_event($row['date'], true), 
     287        'CONTENT' => trigger_event('render_comment_content', $row['content'], 'album'), 
    288288        'WEBSITE_URL' => $row['website_url'], 
    289289        ); 
     
    387387  $template->set_filename('comments_on_albums', realpath(COA_PATH . 'template/albums.tpl')); 
    388388 
    389   trigger_notify('loc_end_coa'); 
     389  trigger_action('loc_end_coa'); 
    390390 
    391391  if (isset($pwg_loaded_plugins['rv_tscroller']) and count($page['navigation_bar']) != 0) 
  • extensions/Comments_on_Albums/trunk/include/coa_comments_page.php

    r26110 r26848  
    295295      'U_PICTURE' => $comment['cat_url'], 
    296296      'src_image' => $comment['src_image'], 
    297       'ALT' => trigger_change('render_category_name', $categories[$comment['comment_id']]['name']), 
    298       'AUTHOR' => trigger_change('render_comment_author', $comment['author']), 
     297      'ALT' => trigger_event('render_category_name', $categories[$comment['comment_id']]['name']), 
     298      'AUTHOR' => trigger_event('render_comment_author', $comment['author']), 
    299299      'WEBSITE_URL' => $comment['website_url'], 
    300300      'DATE' => format_date($comment['date'], true), 
    301       'CONTENT' => trigger_change('render_comment_content', $comment['content'], 'album'), 
     301      'CONTENT' => trigger_event('render_comment_content', $comment['content'], 'album'), 
    302302      ); 
    303303 
  • extensions/Comments_on_Albums/trunk/include/events.inc.php

    r26089 r26848  
    1010    ) 
    1111  { 
    12     trigger_notify('loc_begin_coa'); 
     12    trigger_action('loc_begin_coa'); 
    1313    include(COA_PATH . 'include/coa_albums.php'); 
    1414  } 
  • extensions/Comments_on_Albums/trunk/include/functions_comment.inc.php

    r26110 r26848  
    149149 
    150150  // perform more spam check 
    151   $comment_action = trigger_change('user_comment_check', 
     151  $comment_action = trigger_event('user_comment_check', 
    152152      $comment_action, $comm, 'album' 
    153153    ); 
     
    242242                      'comment_id' => $comment_id 
    243243                  )); 
    244     trigger_notify('user_comment_deletion', $comment_id, 'album'); 
     244    trigger_action('user_comment_deletion', $comment_id, 'album'); 
    245245 
    246246    return true; 
     
    280280  // perform more spam check 
    281281  $comment_action = 
    282     trigger_change('user_comment_check', 
     282    trigger_event('user_comment_check', 
    283283      $comment_action, 
    284284      array_merge($comment, 
     
    411411  pwg_query($query); 
    412412 
    413   trigger_notify('user_comment_validation', $comment_id, 'album'); 
     413  trigger_action('user_comment_validation', $comment_id, 'album'); 
    414414} 
  • extensions/Comments_on_Albums/trunk/stuffs_module/main.inc.php

    r26143 r26848  
    209209      'U_PICTURE' => $comment['cat_url'], 
    210210      'src_image' => $src_image, 
    211       'ALT' => trigger_change('render_category_name', $categories[$comment['comment_id']]['name']), 
    212       'AUTHOR' => trigger_change('render_comment_author', $comment['author']), 
     211      'ALT' => trigger_event('render_category_name', $categories[$comment['comment_id']]['name']), 
     212      'AUTHOR' => trigger_event('render_comment_author', $comment['author']), 
    213213      'DATE'=> format_date($comment['date'], true), 
    214       'CONTENT'=> trigger_change('render_comment_content',$comment['content'], 'album'), 
     214      'CONTENT'=> trigger_event('render_comment_content',$comment['content'], 'album'), 
    215215      'WIDTH' => $datas[3], 
    216216      'HEIGHT' => $datas[4], 
Note: See TracChangeset for help on using the changeset viewer.