diff --git a/upload/admin/admin_attach_cp.php b/upload/admin/admin_attach_cp.php index 0f44b11d2..10fed9d8b 100644 --- a/upload/admin/admin_attach_cp.php +++ b/upload/admin/admin_attach_cp.php @@ -524,7 +524,7 @@ if ($view == 'attachments') if (strlen($post_title) > 32) { - $post_title = substr($post_title, 0, 30) . '...'; + $post_title = str_short($post_title, 30); } $view_topic = append_sid(BB_ROOT . 'viewtopic.php?' . POST_POST_URL . '=' . $ids[$j]['post_id'] . '#' . $ids[$j]['post_id']); diff --git a/upload/ajax/posts.php b/upload/ajax/posts.php index d993dc4d6..05697399e 100644 --- a/upload/ajax/posts.php +++ b/upload/ajax/posts.php @@ -168,7 +168,7 @@ switch($this->request['type'])