Changeset 26143


Ignore:
Timestamp:
12/24/13 01:15:41 (5 years ago)
Author:
mistic100
Message:

new trigger 'loc_end_coa'

Location:
extensions/Comments_on_Albums/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/include/coa_albums.php

    r26110 r26143  
    387387  $template->set_filename('comments_on_albums', realpath(COA_PATH . 'template/albums.tpl')); 
    388388 
     389  trigger_notify('loc_end_coa'); 
     390 
    389391  if (isset($pwg_loaded_plugins['rv_tscroller']) and count($page['navigation_bar']) != 0) 
    390392  { 
  • extensions/Comments_on_Albums/trunk/stuffs_module/config.inc.php

    r21347 r26143  
    99  if (empty($_POST['nb_comments'])) 
    1010  { 
    11     array_push($page['errors'], l10n('lastcoms_no_nb_comments')); 
     11    $page['errors'][] = l10n('lastcoms_no_nb_comments'); 
    1212  } 
    1313  else 
  • extensions/Comments_on_Albums/trunk/stuffs_module/main.inc.php

    r26110 r26143  
    131131while ($row = pwg_db_fetch_assoc($result)) 
    132132{ 
    133   array_push($comments, $row); 
    134   array_push($element_ids, $row['category_id']); 
     133  $comments[] = $row; 
     134  $element_ids[] = $row['category_id']; 
    135135} 
    136136 
     
    154154      break; 
    155155  } 
    156    
     156 
    157157  // retrieving category informations 
    158158  $query = ' 
    159 SELECT  
    160     cat.id,  
    161     cat.name,  
    162     cat.permalink,  
    163     cat.uppercats,  
     159SELECT 
     160    cat.id, 
     161    cat.name, 
     162    cat.permalink, 
     163    cat.uppercats, 
    164164    com.id as comment_id, 
    165165    img.id AS image_id, 
     
    168168    LEFT JOIN '.COA_TABLE.' AS com 
    169169      ON com.category_id = cat.id 
    170     LEFT JOIN '.USER_CACHE_CATEGORIES_TABLE.' AS ucc  
     170    LEFT JOIN '.USER_CACHE_CATEGORIES_TABLE.' AS ucc 
    171171      ON ucc.cat_id = cat.id AND ucc.user_id = '.$user['id'].' 
    172172    LEFT JOIN '.IMAGES_TABLE.' AS img 
     
    176176      'forbidden_categories' => 'cat.id', 
    177177      'visible_categories' => 'cat.id' 
    178       ),  
     178      ), 
    179179    'WHERE' 
    180180    ).' 
     
    216216      'HEIGHT' => $datas[4], 
    217217      ); 
    218      
     218 
    219219    if ($datas[1] == 'on') 
    220220    { 
     
    270270      } 
    271271    } 
    272      
    273     array_push($block['comments'], $tpl_comment); 
     272 
     273    $block['comments'][] = $tpl_comment; 
    274274  } 
    275275  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB); 
Note: See TracChangeset for help on using the changeset viewer.