mediawiki-extensions-AbuseF.../includes
Daimona Eaytoy 11d922d1bd Remove useless param to wfMessage
Copying my investigation from I8c93e2ae7e7bd4fc561c5e8490ed2feb1ef0edc2:

This code was introduced in 2009, see rEABF0f1eb8db78bfa83ddb93427f39aad619523d8f25:

  $display = wfMsg( "abusefilter-action-$action" );
  $display = wfEmptyMsg( "abusefilter-action-$action", $display ) ? $action : $display;

And wfEmptyMsg looked like this:

  function wfEmptyMsg( $msg, $wfMsgOut ) {
    return $wfMsgOut === htmlspecialchars( "<$msg>" );
  }

so this made sense. But then, in 2010 (rMWae3ced88e535c7fd046f0ad6f0710cc87f0004ea) the function was changed:

  function wfEmptyMsg( $key ) {
    global $wgMessageCache;
    return $wgMessageCache->get( $key ) === false;
  }

without anyone removing the parameter from AbuseFilter.

Finally, in 2012 (rEABF176227e721c9475de2c2163d3b6e20ca4769c406) the usage of wfEmptyMsg was removed, and $display became a parameter to wfMessage().

Long story short, no need to pass that parameter.

Change-Id: Iad875f0c0ab5aaa06c795232638f52e9ca62786e
2020-10-05 23:39:23 +02:00
..
api Move some misplaced AbuseFilterParser entry points 2020-09-29 00:36:08 +02:00
Hooks HookRunner: onAbuseFilterGenerateUserVars should run generateUserVars 2020-09-24 16:40:03 +02:00
pagers Merge "Use null defaults for search options on Special:AbuseFilter" 2020-10-04 12:56:14 +00:00
parser Merge "Move some misplaced AbuseFilterParser entry points" 2020-09-29 13:51:17 +00:00
special Refactor AbuseFilterView instantiation 2020-10-04 13:15:04 +02:00
VariableGenerator Add test traits for uploads and account creation 2020-10-04 13:16:58 +00:00
Views Merge "Use null defaults for search options on Special:AbuseFilter" 2020-10-04 12:56:14 +00:00
AbuseFilter.php Remove useless param to wfMessage 2020-10-05 23:39:23 +02:00
AbuseFilterChangesList.php Stop using the Revision class 2020-02-26 15:39:12 +00:00
AbuseFilterHooks.php Merge "Actually apply patch-afl_change_deleted_patrolled." 2020-10-05 08:15:48 +00:00
AbuseFilterModifyLogFormatter.php build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1 2019-07-10 15:30:52 +00:00
AbuseFilterPreAuthenticationProvider.php Factor out variables-related methods 2020-02-07 20:27:26 +00:00
AbuseFilterRightsLogFormatter.php Hide "User:" prefix from autopromote log entries 2020-09-17 12:12:00 +02:00
AbuseFilterRunner.php Move some misplaced AbuseFilterParser entry points 2020-09-29 00:36:08 +02:00
AbuseFilterServices.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
AbuseFilterSuppressLogFormatter.php
AbuseFilterVariableHolder.php Rewrite the VariableHolder code to translate deprecated variables 2020-09-29 15:06:14 +00:00
AbuseLogHitFormatter.php Add MessageLocalizer to AbuseFilter::getActionDisplay 2020-09-17 22:45:52 +02:00
AFComputedVariable.php Update hook calling to use new HookContainer 2020-09-17 10:05:45 +00:00
KeywordsManager.php Add tests for retrieving RC variables 2020-10-04 12:43:04 +00:00
ServiceWiring.php Introduce a KeywordsManager service 2020-09-28 23:03:52 +00:00
TableDiffFormatterFullContext.php