Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -199,7 +199,7 @@ |
200 | 200 | $vars = new AbuseFilterVariableHolder; |
201 | 201 | |
202 | 202 | if (!$title) |
203 | | - return array(); |
| 203 | + return new AbuseFilterVariableHolder; |
204 | 204 | |
205 | 205 | $vars->setVar( $prefix."_ARTICLEID", $title->getArticleId() ); |
206 | 206 | $vars->setVar( $prefix."_NAMESPACE", $title->getNamespace() ); |
— | — | @@ -1153,8 +1153,10 @@ |
1154 | 1154 | $user->setName( $row->rc_user_text ); |
1155 | 1155 | } |
1156 | 1156 | |
| 1157 | + $params = explode( "\n", trim($row->rc_params) ); |
| 1158 | + |
1157 | 1159 | $oldTitle = Title::makeTitle( $row->rc_namespace, $row->rc_title ); |
1158 | | - $newTitle = Title::newFromText( trim($row->rc_params) ); |
| 1160 | + $newTitle = Title::newFromText( $params[0] ); |
1159 | 1161 | |
1160 | 1162 | $vars = AbuseFilterVariableHolder::merge( |
1161 | 1163 | $vars, |