1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Merge pull request #31 from clarkwinkelmann/patch-1

Remove unused parameter
This commit is contained in:
Toby Zerner
2018-03-07 13:43:01 +10:30
committed by GitHub

View File

@@ -60,7 +60,6 @@ class FormatUserMentions
$tag->template = '<a href="{$PROFILE_URL}{@username}" class="UserMention">@<xsl:value-of select="@displayname"/></a>';
$tag->filterChain->prepend([static::class, 'addId'])
->addParameterByName('userRepository')
->setJS('function(tag) { return System.get("flarum/mentions/utils/textFormatter").filterUserMentions(tag); }');
$configurator->Preg->match('/\B@(?<username>[a-z0-9_-]+)(?!#)/i', $tagName);