aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorRahul R <rahulr92@gmail.com>2012-04-03 21:36:26 +0530
committerRahul R <rahulr92@gmail.com>2012-04-05 00:46:14 +0530
commit663b5f6542cc3088919836324f71413320997fe8 (patch)
treeb8ac8ff64bbef988550f19d4871b57b8b2a8393c /phpBB/includes/functions_display.php
parent1dd5b48434a8defe82860666750c8e78f62cc933 (diff)
downloadforums-663b5f6542cc3088919836324f71413320997fe8.tar
forums-663b5f6542cc3088919836324f71413320997fe8.tar.gz
forums-663b5f6542cc3088919836324f71413320997fe8.tar.bz2
forums-663b5f6542cc3088919836324f71413320997fe8.tar.xz
forums-663b5f6542cc3088919836324f71413320997fe8.zip
[ticket/10650] Cropped subject and inserted newline
The subject being displayed in the forum list have been shortened to 30 characters. Also it is now being shown in a separate line. PHPBB3-10650
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 9b80763ee4..b331ed7d71 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -397,6 +397,11 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
if ($row['forum_last_post_id'])
{
$last_post_subject = $row['forum_last_post_subject'];
+ if (strlen($last_post_subject) > 30)
+ {
+ $last_post_subject = substr($last_post_subject, 0, 30);
+ $last_post_subject .= '...';
+ }
$last_post_time = $user->format_date($row['forum_last_post_time']);
$last_post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&amp;p=' . $row['forum_last_post_id']) . '#p' . $row['forum_last_post_id'];
}