r108852 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108851‎ | r108852 | r108853 >
Date:21:36, 13 January 2012
Author:reedy
Status:ok
Tags:
Comment:
Fix action= examples from r95572, need abusefilter prefix
Modified paths:
  • /trunk/extensions/AbuseFilter/api/ApiAbuseFilterCheckMatch.php (modified) (history)
  • /trunk/extensions/AbuseFilter/api/ApiAbuseFilterCheckSyntax.php (modified) (history)
  • /trunk/extensions/AbuseFilter/api/ApiAbuseFilterEvalExpression.php (modified) (history)
  • /trunk/extensions/AbuseFilter/api/ApiAbuseFilterUnblockAutopromote.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/api/ApiAbuseFilterCheckMatch.php
@@ -103,7 +103,7 @@
104104
105105 public function getExamples() {
106106 return array(
107 - 'api.php?action=checkfiltermatch&filter=!("autoconfirmed"%20in%20user_groups)&rcid=15'
 107+ 'api.php?action=abusefiltercheckmatch&filter=!("autoconfirmed"%20in%20user_groups)&rcid=15'
108108 );
109109 }
110110
Index: trunk/extensions/AbuseFilter/api/ApiAbuseFilterUnblockAutopromote.php
@@ -75,7 +75,7 @@
7676
7777 public function getExamples() {
7878 return array(
79 - 'api.php?action=unblockautopromote&user=Bob'
 79+ 'api.php?action=abusefilterunblockautopromote&user=Bob'
8080 );
8181 }
8282
Index: trunk/extensions/AbuseFilter/api/ApiAbuseFilterCheckSyntax.php
@@ -54,12 +54,12 @@
5555
5656 public function getExamples() {
5757 return array(
58 - 'api.php?action=checkfiltersyntax&filter="foo"',
59 - 'api.php?action=checkfiltersyntax&filter="bar"%20bad_variable',
 58+ 'api.php?action=abusefilterchecksyntax&filter="foo"',
 59+ 'api.php?action=abusefilterchecksyntax&filter="bar"%20bad_variable',
6060 );
6161 }
6262
6363 public function getVersion() {
6464 return __CLASS__ . ': $Id$';
6565 }
66 -}
\ No newline at end of file
 66+}
Index: trunk/extensions/AbuseFilter/api/ApiAbuseFilterEvalExpression.php
@@ -31,7 +31,7 @@
3232
3333 public function getExamples() {
3434 return array(
35 - 'api.php?action=evalfilterexpression&expression=lcase("FOO")'
 35+ 'api.php?action=abusefilterevalexpression&expression=lcase("FOO")'
3636 );
3737 }
3838

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95572Adds ResourceLoader support to AbuseFilter...johnduhart20:12, 26 August 2011

Status & tagging log