|
From: Paul S. O. <ps...@us...> - 2002-03-03 22:53:14
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv16579
Modified Files:
posting.php
Log Message:
Fix incorrect setting of checkboxes on edit, bug #525244
Index: posting.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/posting.php,v
retrieving revision 1.148
retrieving revision 1.149
diff -C2 -r1.148 -r1.149
*** posting.php 23 Feb 2002 17:54:32 -0000 1.148
--- posting.php 3 Mar 2002 22:53:11 -0000 1.149
***************
*** 732,735 ****
--- 732,739 ----
$attach_sig = ( $post_info['enable_sig'] && $post_info['user_sig'] != "" ) ? TRUE : 0;
$user_sig = $post_info['user_sig'];
+
+ $html_on = ( $post_info['enable_html'] ) ? true : false;
+ $bbcode_on = ( $post_info['enable_bbcode'] ) ? true : false;
+ $smilies_on = ( $post_info['enable_smilies'] ) ? true : false;
}
else
***************
*** 779,783 ****
// Signature toggle selection
//
! if( $user_sig != "" )
{
$template->assign_block_vars("signature_checkbox", array());
--- 783,787 ----
// Signature toggle selection
//
! if( $user_sig != '' )
{
$template->assign_block_vars("signature_checkbox", array());
***************
*** 1011,1019 ****
"U_REVIEW_TOPIC" => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id") : "",
! "S_HTML_CHECKED" => (!$html_on) ? 'checked="checked"' : "",
! "S_BBCODE_CHECKED" => (!$bbcode_on) ? 'checked="checked"' : "",
! "S_SMILIES_CHECKED" => (!$smilies_on) ? 'checked="checked"' : "",
! "S_SIGNATURE_CHECKED" => ($attach_sig) ? 'checked="checked"' : "",
! "S_NOTIFY_CHECKED" => ($notify_user) ? 'checked="checked"' : "",
"S_TYPE_TOGGLE" => $topic_type_toggle,
"S_TOPIC_ID" => $topic_id,
--- 1015,1023 ----
"U_REVIEW_TOPIC" => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id") : "",
! "S_HTML_CHECKED" => ( !$html_on ) ? 'checked="checked"' : "",
! "S_BBCODE_CHECKED" => ( !$bbcode_on ) ? 'checked="checked"' : "",
! "S_SMILIES_CHECKED" => ( !$smilies_on ) ? 'checked="checked"' : "",
! "S_SIGNATURE_CHECKED" => ( $attach_sig ) ? 'checked="checked"' : "",
! "S_NOTIFY_CHECKED" => ( $notify_user ) ? 'checked="checked"' : "",
"S_TYPE_TOGGLE" => $topic_type_toggle,
"S_TOPIC_ID" => $topic_id,
|