Changeset 1556 in ExiteCMS for trunk/forum/post.php


Ignore:
Timestamp:
07/28/08 18:23:11 (4 years ago)
Author:
hverton
Message:

fixed typo that caused the message to be copied into the signature when requesting a preview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/post.php

    r1524 r1556  
    447447            // add information about the current user 
    448448            $preview = array_merge($preview, $userdata); 
    449             $_x = $preview['user_message']; 
    450             $preview['user_message'] = $preview['user_sig']; 
     449            // save the parsed message 
     450            $_x = $preview['post_message']; 
     451            // store the signature in the message to be parsed 
     452            $preview['post_message'] = $preview['user_sig']; 
    451453            $preview['user_sig'] = parsemessage($preview); 
    452             $preview['user_message'] = $_x; 
     454            // restore the user message 
     455            $preview['post_message'] = $_x; 
    453456            // process attachments 
    454457            if ($settings['attachments'] == "1" && $fdata['forum_attach'] == "1") { 
Note: See TracChangeset for help on using the changeset viewer.