1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

[ticket/10640] Do not change default value of truncate_string()

The default value should be kept, so we do not change the behaviour for MODs
and Extensions that use the function with its default values.

PHPBB3-10640
This commit is contained in:
Joas Schilling
2012-05-02 13:13:20 +02:00
committed by Michael Cullum
parent 53d8464776
commit a259db7105
2 changed files with 3 additions and 3 deletions

View File

@@ -1107,7 +1107,7 @@ function extension_allowed($forum_id, $extension, &$extensions)
* NOTE: This parameter can cause undesired behavior (returning strings longer than $max_store_length) and is deprecated.
* @param string $append String to be appended
*/
function truncate_string($string, $max_length = 120, $max_store_length = 255, $allow_reply = false, $append = '')
function truncate_string($string, $max_length = 60, $max_store_length = 255, $allow_reply = false, $append = '')
{
$chars = array();