diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-03 22:53:11 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-03 22:53:11 +0000 |
commit | 0a01693cddf8aee54296d314de00d87815255212 (patch) | |
tree | 711985dbbe5e3d50d2bb7ef91b83490e2495296f /phpBB | |
parent | 4d5fde9a782310afbcf5841e9bcc23da88ef4065 (diff) | |
download | forums-0a01693cddf8aee54296d314de00d87815255212.tar forums-0a01693cddf8aee54296d314de00d87815255212.tar.gz forums-0a01693cddf8aee54296d314de00d87815255212.tar.bz2 forums-0a01693cddf8aee54296d314de00d87815255212.tar.xz forums-0a01693cddf8aee54296d314de00d87815255212.zip |
Fix incorrect setting of checkboxes on edit, bug #525244
git-svn-id: file:///svn/phpbb/trunk@2258 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/posting.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index d009f9a804..6545806d6d 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -731,6 +731,10 @@ else { $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 { @@ -778,7 +782,7 @@ else // // Signature toggle selection // -if( $user_sig != "" ) +if( $user_sig != '' ) { $template->assign_block_vars("signature_checkbox", array()); } @@ -1010,11 +1014,11 @@ $template->assign_vars(array( "U_VIEWTOPIC" => ( $mode == 'reply' ) ? append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postorder=desc") : "", "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_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, "S_POST_ACTION" => append_sid("posting.$phpEx"), |