mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13713] Fix tests for PHP 5.6
PHPBB3-13713
This commit is contained in:
parent
90ee0993e6
commit
fd92abda59
2 changed files with 7 additions and 4 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
namespace phpbb\textformatter\s9e;
|
||||
|
||||
use s9e\TextFormatter\Utils;
|
||||
use s9e\TextFormatter\Utils as TextFormatterUtils;
|
||||
|
||||
class mention_helper
|
||||
{
|
||||
|
@ -117,11 +117,11 @@ class mention_helper
|
|||
|
||||
// TODO: think about optimization for caching colors.
|
||||
$this->get_colors(
|
||||
Utils::getAttributeValues($xml, 'MENTION', 'user_id'),
|
||||
Utils::getAttributeValues($xml, 'MENTION', 'group_id')
|
||||
TextFormatterUtils::getAttributeValues($xml, 'MENTION', 'user_id'),
|
||||
TextFormatterUtils::getAttributeValues($xml, 'MENTION', 'group_id')
|
||||
);
|
||||
|
||||
return Utils::replaceAttributes(
|
||||
return TextFormatterUtils::replaceAttributes(
|
||||
$xml,
|
||||
'MENTION',
|
||||
function ($attributes) use ($user_profile_url, $group_profile_url)
|
||||
|
|
|
@ -44,6 +44,9 @@ services:
|
|||
text_formatter.s9e.quote_helper:
|
||||
synthetic: true
|
||||
|
||||
text_formatter.s9e.mention_helper:
|
||||
synthetic: true
|
||||
|
||||
text_formatter.parser:
|
||||
synthetic: true
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue