Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -138,8 +138,9 @@ |
139 | 139 | ## This is a pretty awful hack. |
140 | 140 | $dbr = wfGetDB( DB_SLAVE ); |
141 | 141 | |
142 | | - $res = $dbr->select( 'abuse_filter_action', 'afa_parameters', |
143 | | - array( 'afa_consequence' => 'tag' ), __METHOD__ ); |
| 142 | + $res = $dbr->select( array( 'abuse_filter_action', 'abuse_filter' ), 'afa_parameters', |
| 143 | + array( 'afa_consequence' => 'tag', 'af_enabled' => true ), __METHOD__, array(), |
| 144 | + array( 'abuse_filter' => array( 'inner join', 'afa_filter=af_id' ) ) ); |
144 | 145 | |
145 | 146 | while( $row = $res->fetchObject() ) { |
146 | 147 | $emptyTags = array_filter( |