Skip to content

Commit 9e8ee8c

Browse files
Nicolas MeyertönsNicolas Meyertöns
authored andcommitted
Compromise for mobile devices
I set the max size to 50, so that mobile devices with a resolution of 360 x .... dont get two lines for one entry.
1 parent ef74ca2 commit 9e8ee8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

controller/main.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ private function display_pb()
173173
'URL' => $this->helper->route('phpbbde_pastebin_main_controller', array('mode'=>'view', 's' => $row['snippet_id'])),
174174
'DESC' => $row['snippet_desc'],
175175
'TITLE' => $row['snippet_title'],
176-
'TITLE_SHORT' => (utf8_strlen($row['snippet_title']) > 60) ? utf8_substr($row['snippet_title'], 0, 60) . '...' : $row['snippet_title'],
176+
'TITLE_SHORT' => (utf8_strlen($row['snippet_title']) > 50) ? utf8_substr($row['snippet_title'], 0, 50) . '...' : $row['snippet_title'],
177+
'TITLE_SHORT' => (utf8_strlen($row['snippet_title']) > 50) ? utf8_substr($row['snippet_title'], 0, 50) . '...' : $row['snippet_title'],
177178
'AUTHOR_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
178179
));
179180
}

0 commit comments

Comments
 (0)