mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Replaced some string functions to mbstring alternatives (#1735)
* Replaced some string functions to mbstring alternatives * Update CHANGELOG.md * Update admin_attach_cp.php * Update CHANGELOG.md
This commit is contained in:
parent
e5aaaf4abd
commit
e75d2859c3
4 changed files with 4 additions and 7 deletions
|
@ -422,11 +422,7 @@ if ($view === 'attachments') {
|
|||
|
||||
$row = DB()->sql_fetchrow($result);
|
||||
DB()->sql_freeresult($result);
|
||||
$post_title = $row['topic_title'];
|
||||
|
||||
if (strlen($post_title) > 32) {
|
||||
$post_title = str_short($post_title, 30);
|
||||
}
|
||||
$post_title = str_short($row['topic_title'], 30);
|
||||
|
||||
$view_topic = BB_ROOT . POST_URL . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue