Minor improvements (#812)

* Minor improvements

* fix

* fix

* Update viewtopic_attach.tpl

* Revert "Maked max post length configurable (#793)"

This reverts commit fd42eae329.

* Update config.php

* fix
This commit is contained in:
Roman Kelesidis 2023-06-21 14:03:19 +07:00 committed by GitHub
commit 41664685ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 39 additions and 37 deletions

View file

@ -1888,7 +1888,7 @@ function profile_url($data)
$profile = '<span title="' . $title . '" class="' . $style . '">' . $username . '</span>';
if (!in_array($user_id, array('', GUEST_UID, BOT_UID)) && $username) {
if (!in_array($user_id, explode(',', EXCLUDED_USERS)) && $username) {
$profile = '<a href="' . make_url(PROFILE_URL . $user_id) . '">' . $profile . '</a>';
}
@ -1943,7 +1943,7 @@ function gender_image($gender): string
function is_gold($type): string
{
global $lang, $bb_cfg;
global $lang, $bb_cfg, $images;
$type = (int)$type;
$is_gold = '';
@ -1954,10 +1954,10 @@ function is_gold($type): string
switch ($type) {
case TOR_TYPE_GOLD:
$is_gold = '<img src="styles/images/tor_gold.gif" width="16" height="15" title="' . $lang['GOLD'] . '" />&nbsp;';
$is_gold = '<img width="16" height="15" src="' . $images['icon_tor_gold'] . '" alt="' . $lang['GOLD'] . '" title="' . $lang['GOLD'] . '" />&nbsp;';
break;
case TOR_TYPE_SILVER:
$is_gold = '<img src="styles/images/tor_silver.gif" width="16" height="15" title="' . $lang['SILVER'] . '" />&nbsp;';
$is_gold = '<img width="16" height="15" src="' . $images['icon_tor_silver'] . '" alt="' . $lang['SILVER'] . '" title="' . $lang['SILVER'] . '" />&nbsp;';
break;
default:
break;