Code cleanup, mainly unused variables

This commit is contained in:
Sam Reed 2010-11-04 01:29:10 +00:00
parent de9d764eca
commit a0a6d18b88

View file

@ -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;
}