mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
Add \n before post modifiers. Add flag alt for country flags.
This commit is contained in:
parent
5774d21632
commit
0d45fbc799
@ -1283,7 +1283,7 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
|
||||
$query->bindValue(':subject', $_POST['subject']);
|
||||
$query->bindValue(':body', $_POST['body']);
|
||||
if ($edit_raw_html) {
|
||||
$body_nomarkup = $_POST['body'] . '<tinyboard raw html>1</tinyboard>';
|
||||
$body_nomarkup = $_POST['body'] . "\n<tinyboard raw html>1</tinyboard>";
|
||||
$query->bindValue(':body_nomarkup', $body_nomarkup);
|
||||
}
|
||||
$query->execute() or error(db_error($query));
|
||||
|
5
post.php
5
post.php
@ -422,7 +422,7 @@ if (isset($_POST['delete'])) {
|
||||
$post['body'] = escape_markup_modifiers($post['body']);
|
||||
|
||||
if ($mod && isset($post['raw']) && $post['raw']) {
|
||||
$post['body'] .= '<tinyboard raw html>1</tinyboard>';
|
||||
$post['body'] .= "\n<tinyboard raw html>1</tinyboard>";
|
||||
}
|
||||
|
||||
if ($config['country_flags']) {
|
||||
@ -430,7 +430,8 @@ if (isset($_POST['delete'])) {
|
||||
error('GeoIP not available: ' . geoip_db_filename(GEOIP_COUNTRY_EDITION));
|
||||
}
|
||||
if ($country_code = @geoip_country_code_by_name($_SERVER['REMOTE_ADDR'])) {
|
||||
$post['body'] .= '<tinyboard flag>' . strtolower($country_code) . '</tinyboard>';
|
||||
$post['body'] .= "\n<tinyboard flag>" . strtolower($country_code) . "</tinyboard>" .
|
||||
"\n<tinyboard flag alt>" . @geoip_country_name_by_name($_SERVER['REMOTE_ADDR']) . "</tinyboard>";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user