mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Code cleanup, mainly unused variables
This commit is contained in:
parent
de9d764eca
commit
a0a6d18b88
|
@ -78,7 +78,8 @@ class AbuseFilterViewTestBatch extends AbuseFilterView {
|
|||
function doTest() {
|
||||
// Quick syntax check.
|
||||
global $wgUser, $wgOut;
|
||||
if ( ( $result = AbuseFilter::checkSyntax( $this->mFilter ) ) !== true ) {
|
||||
$result = AbuseFilter::checkSyntax( $this->mFilter );
|
||||
if ( $result !== true ) {
|
||||
$wgOut->addWikiMsg( 'abusefilter-test-syntaxerr' );
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue