diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-17 03:39:58 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-17 03:39:58 +1000 |
| commit | 0d45fbc7992b8e55bc4a9df079f9ae0ed3b85e64 (patch) | |
| tree | 3f720afaba3887e3c83fc9c326611b23119b45db /post.php | |
| parent | 5774d2163280406aa74344d547bbe8f8a481c8c1 (diff) | |
Add \n before post modifiers. Add flag alt for country flags.
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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>"; } } |
