Remove unused parameter

This commit is contained in:
Clark Winkelmann 2018-03-07 04:04:19 +01:00 committed by GitHub
parent c5818ba87d
commit 5bf642046d

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);