Changeset 18995 for trunk/picture.php


Ignore:
Timestamp:
Nov 11, 2012, 4:01:09 PM (12 years ago)
Author:
mistic100
Message:

feature:2786 Allow to edit website url in user comments + improve "user experience" on comment edition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r18760 r18995  
    350350              'comment_id' => $_GET['comment_to_edit'],
    351351              'image_id' => $page['image_id'],
    352               'content' => $_POST['content']
     352              'content' => $_POST['content'],
     353              'website_url' => @$_POST['website_url'],
    353354              ),
    354355            $_POST['key']
     
    366367            case 'reject':
    367368              $_SESSION['page_errors'][] = l10n('Your comment has NOT been registered because it did not pass the validation rules');
    368               $perform_redirect = true;
    369369              break;
    370370            default:
     
    378378          unset($_POST['content']);
    379379        }
    380         else
    381         {
    382           $edit_comment = $_GET['comment_to_edit'];
    383         }
     380       
     381        $edit_comment = $_GET['comment_to_edit'];
    384382      }
    385383      break;
Note: See TracChangeset for help on using the changeset viewer.