Revert bad change that commented this out on mod post edit page
This commit is contained in:
parent
a4607fa6e6
commit
714a92af44
|
@ -2020,18 +2020,18 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
|
||||||
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['dir']['res'] . link_for($post) . '#' . $postID, true, $config['redirect_http']);
|
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['dir']['res'] . link_for($post) . '#' . $postID, true, $config['redirect_http']);
|
||||||
} else {
|
} else {
|
||||||
// Remove modifiers
|
// Remove modifiers
|
||||||
//$post['body_nomarkup'] = remove_modifiers($post['body_nomarkup']);
|
$post['body_nomarkup'] = remove_modifiers($post['body_nomarkup']);
|
||||||
|
|
||||||
//$post['body_nomarkup'] = utf8tohtml($post['body_nomarkup']);
|
$post['body_nomarkup'] = utf8tohtml($post['body_nomarkup']);
|
||||||
//$post['body'] = utf8tohtml($post['body']);
|
$post['body'] = utf8tohtml($post['body']);
|
||||||
/*if ($config['minify_html']) {
|
if ($config['minify_html']) {
|
||||||
$post['body_nomarkup'] = str_replace("\n", '
', $post['body_nomarkup']);
|
$post['body_nomarkup'] = str_replace("\n", '
', $post['body_nomarkup']);
|
||||||
$post['body'] = str_replace("\n", '
', $post['body']);
|
$post['body'] = str_replace("\n", '
', $post['body']);
|
||||||
$post['body_nomarkup'] = str_replace("\r", '', $post['body_nomarkup']);
|
$post['body_nomarkup'] = str_replace("\r", '', $post['body_nomarkup']);
|
||||||
$post['body'] = str_replace("\r", '', $post['body']);
|
$post['body'] = str_replace("\r", '', $post['body']);
|
||||||
$post['body_nomarkup'] = str_replace("\t", '	', $post['body_nomarkup']);
|
$post['body_nomarkup'] = str_replace("\t", '	', $post['body_nomarkup']);
|
||||||
$post['body'] = str_replace("\t", '	', $post['body']);
|
$post['body'] = str_replace("\t", '	', $post['body']);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
mod_page(_('Edit post'), 'mod/edit_post_form.html', array('token' => $security_token, 'board' => $board, 'raw' => $edit_raw_html, 'post' => $post));
|
mod_page(_('Edit post'), 'mod/edit_post_form.html', array('token' => $security_token, 'board' => $board, 'raw' => $edit_raw_html, 'post' => $post));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue