Changeset 12562
- Timestamp:
- Nov 6, 2011, 7:38:13 PM (12 years ago)
- Location:
- extensions/Comments_on_Albums
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/include/coa_albums.php
r11417 r12562 42 42 array( 43 43 'comment_id' => $_GET['comment_to_edit'], 44 ' image_id' => $category['id'],44 'category_id' => $category['id'], 45 45 'content' => $_POST['content'] 46 46 ), … … 130 130 'author' => trim( @$_POST['author'] ), 131 131 'content' => trim( $_POST['content'] ), 132 ' image_id' => $category['id'],132 'category_id' => $category['id'], 133 133 ); 134 134 … … 356 356 { 357 357 $template->set_prefilter('index', 'coa_messages'); 358 359 function coa_messages($content, &$smarty) 360 { 361 $search = '{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}'; 362 363 $replacement = $search.' 358 } 359 360 function coa_messages($content, &$smarty) 361 { 362 $replacement = ' 364 363 {if isset($errors)} 365 364 <div class="errors"> … … 381 380 {/if}'; 382 381 383 return str_replace($search, $replacement, $content); 384 } 382 return $replacement.$content; 385 383 } 386 384 } -
extensions/Comments_on_Albums/include/coa_comments_page.php
r11874 r12562 117 117 array( 118 118 'comment_id' => $_GET['edit_albums'], 119 ' image_id' => $_POST['image_id'],119 'category_id' => $_POST['image_id'], 120 120 'content' => $_POST['content'] 121 121 ), -
extensions/Comments_on_Albums/include/functions_comment.inc.php
r11327 r12562 43 43 * Tries to insert a user comment in the database and returns one of : 44 44 * validate, moderate, reject 45 * @param array comm contains author, content, image_id45 * @param array comm contains author, content, category_id 46 46 * @param string key secret key sent back to the browser 47 47 * @param array infos out array of messages … … 103 103 } 104 104 105 if ( !verify_ephemeral_key(@$key, $comm[' image_id']) )105 if ( !verify_ephemeral_key(@$key, $comm['category_id']) ) 106 106 { 107 107 $comment_action='reject'; … … 141 141 \''.($comment_action=='validate' ? 'true':'false').'\', 142 142 '.($comment_action=='validate' ? 'NOW()':'NULL').', 143 '.$comm[' image_id'].'143 '.$comm['category_id'].' 144 144 ) 145 145 '; … … 207 207 )); 208 208 } 209 210 trigger_action('user_comment_deletion', $comment_id, 'category'); 209 211 } 210 212 … … 225 227 $comment_action = 'validate'; 226 228 227 if ( !verify_ephemeral_key($post_key, $comment[' image_id']) )229 if ( !verify_ephemeral_key($post_key, $comment['category_id']) ) 228 230 { 229 231 $comment_action='reject'; … … 373 375 ;'; 374 376 pwg_query($query); 377 378 trigger_action('user_comment_validation', $comment_id, 'category'); 375 379 } 376 380 ?> -
extensions/Comments_on_Albums/stuffs_module/main.inc.php
r12381 r12562 46 46 $clauses[] = get_sql_condition_FandF ( 47 47 array ('forbidden_categories' => 'category_id', 48 'visible_categories' => 'category_id', 49 'visible_images' => 'ic.image_id'), '', true); 48 'visible_categories' => 'category_id'), '', true); 50 49 51 50 $query = '
Note: See TracChangeset
for help on using the changeset viewer.