mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
Compare commits
6 commits
f81c217015
...
a05ce5fd59
Author | SHA1 | Date | |
---|---|---|---|
|
a05ce5fd59 | ||
|
844bf0141f | ||
|
df43810f55 | ||
|
03ac7a6d5e | ||
|
8f1a777c5f | ||
|
17a50027b1 |
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ function bump_topic_allowed($forum_id, $topic_bumped, $last_post_time, $topic_po
|
|||
*
|
||||
* @return string Context of the specified words separated by "..."
|
||||
*/
|
||||
function get_context($text, $words, $length = 400)
|
||||
function get_context(string $text, array $words, int $length = 400)
|
||||
{
|
||||
// first replace all whitespaces with single spaces
|
||||
$text = preg_replace('/ +/', ' ', strtr($text, "\t\n\r\x0C ", ' '));
|
||||
|
|
Loading…
Add table
Reference in a new issue