Changeset 26859 for extensions/rv_akismet/check.inc.php
- Timestamp:
- Jan 18, 2014, 3:31:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_akismet/check.inc.php
r18945 r26859 1 1 <?php 2 function akismet_user_comment_check($action, $comment )2 function akismet_user_comment_check($action, $comment, $where) 3 3 { 4 4 global $conf; … … 13 13 14 14 set_make_full_url(); 15 $url = duplicate_picture_url( array('image_id'=>$comment['image_id']) ); 15 switch($where) 16 { 17 case 'guestbook': 18 $url = defined('GUESTBOOK_URL') ? GUESTBOOK_URL : get_absolute_root_url(); 19 break; 20 case 'album': 21 // build category url with minimum data (only id is always known) 22 $url = duplicate_index_url( array( 23 'section'=>'categories', 24 'category'=>array('id'=>$comment['category_id'], 'name'=>'', 'permalink'=>'') 25 ) ); 26 break; 27 default: 28 $url = duplicate_picture_url( array('image_id'=>$comment['image_id']) ); 29 } 16 30 unset_make_full_url(); 31 17 32 $aki_comm = array( 18 33 'author' => $comment['author'],
Note: See TracChangeset
for help on using the changeset viewer.