Minor improvements (#212)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-07-17 01:21:24 +07:00 committed by GitHub
parent c12bb56d6b
commit ce5195fe04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@
- Release v2.1.5-2023.07 🎉 - Release v2.1.5-2023.07 🎉
- Fix RFC 1918 RegExp [\#210](https://github.com/torrentpier/torrentpier-lts/pull/210) ([belomaxorka](https://github.com/belomaxorka)) - Fix RFC 1918 RegExp [\#210](https://github.com/torrentpier/torrentpier-lts/pull/210) ([belomaxorka](https://github.com/belomaxorka))
- Maked max smilies in PM configurable [\#211](https://github.com/torrentpier/torrentpier-lts/pull/211) ([belomaxorka](https://github.com/belomaxorka)) - Maked max smilies in PM configurable [\#211](https://github.com/torrentpier/torrentpier-lts/pull/211) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#212](https://github.com/torrentpier/torrentpier-lts/pull/212) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.06](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.06) (2023-07-04) ## [v2.1.5-2023.06](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.06) (2023-07-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.05...v2.1.5-2023.06) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.05...v2.1.5-2023.06)

View File

@ -794,8 +794,8 @@ class bbcode
} }
if ($this->smilies) if ($this->smilies)
{ {
$parsed_text = preg_replace($this->smilies['orig'], $this->smilies['repl'], $text, 101, $smilies_cnt); $parsed_text = preg_replace($this->smilies['orig'], $this->smilies['repl'], $text);
$text = ($smilies_cnt <= 100) ? $parsed_text : $text; $text = $parsed_text;
} }
return $text; return $text;