Change flag_country to just flag
This commit is contained in:
parent
23f23b8301
commit
a9fe4ea2db
2
post.php
2
post.php
@ -430,7 +430,7 @@ 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_country>' . strtolower($country_code) . '</tinyboard>';
|
||||
$post['body'] .= '<tinyboard flag>' . strtolower($country_code) . '</tinyboard>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,8 +28,8 @@
|
||||
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
|
||||
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
|
||||
{% endif %}
|
||||
{% if config.display_flags and post.modifiers.flag_country %}
|
||||
<img class="flag" style="width:{{ config.flag_width }}px;height:{{ config.flag_height }}px" src="{{ config.uri_flags|sprintf(post.modifiers.flag_country) }}">
|
||||
{% if config.display_flags and post.modifiers.flag %}
|
||||
<img class="flag" style="width:{{ config.flag_width }}px;height:{{ config.flag_height }}px" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}">
|
||||
{% endif %}
|
||||
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
||||
</label>
|
||||
|
@ -82,8 +82,8 @@
|
||||
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
|
||||
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
|
||||
{% endif %}
|
||||
{% if config.display_flags and post.modifiers.flag_country %}
|
||||
<img class="flag" style="width:{{ config.flag_width }}px;height:{{ config.flag_height }}px" src="{{ config.uri_flags|sprintf(post.modifiers.flag_country) }}">
|
||||
{% if config.display_flags and post.modifiers.flag %}
|
||||
<img class="flag" style="width:{{ config.flag_width }}px;height:{{ config.flag_height }}px" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}">
|
||||
{% endif %}
|
||||
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
||||
</label>
|
||||
|
Loading…
Reference in New Issue
Block a user