Ignore:
Timestamp:
08/03/12 19:02:24 (7 years ago)
Author:
mistic100
Message:

feature 2380: add URL for user comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/picture_comment.inc.php

    r15924 r17351  
    4949    'author' => trim( @$_POST['author'] ), 
    5050    'content' => trim( $_POST['content'] ), 
     51    'website_url' => trim( $_POST['website_url'] ), 
    5152    'image_id' => $page['image_id'], 
    5253   ); 
     
    146147    date, 
    147148    image_id, 
     149    website_url, 
    148150    content, 
    149151    validated 
     
    179181          'DATE' => format_date($row['date'], true), 
    180182          'CONTENT' => trigger_event('render_comment_content',$row['content']), 
     183          'WEBSITE_URL' => $row['website_url'], 
    181184        ); 
    182185 
     
    242245  { 
    243246    $key = get_ephemeral_key(3, $page['image_id']); 
    244     $content = $author = ''; 
     247    $content = $author = $website_url = ''; 
    245248    if ('reject'===@$comment_action) 
    246249    { 
    247250      $content = htmlspecialchars( stripslashes($comm['content']) ); 
    248251      $author = htmlspecialchars( stripslashes($comm['author']) ); 
     252      $website_url = htmlspecialchars( stripslashes($comm['website_url']) ); 
    249253    } 
    250254    $template->assign('comment_add', 
     
    255259          'SHOW_AUTHOR' => !is_classic_user(), 
    256260          'AUTHOR' => $author , 
     261          'WEBSITE_URL' => $website_url,  
    257262        )); 
    258263  } 
Note: See TracChangeset for help on using the changeset viewer.