Index: trunk/extensions/AbuseFilter/AbuseFilterVariableHolder.php |
— | — | @@ -190,7 +190,7 @@ |
191 | 191 | $text1 = $vars->getVar( $text1Var )->toString(); |
192 | 192 | $text2 = $vars->getVar( $text2Var )->toString(); |
193 | 193 | $result = wfDiff( $text1, $text2 ); |
194 | | - $result = trim( str_replace( "\ No newline at end of file\n", '', $result ) ); |
| 194 | + $result = trim( preg_replace( "/^\\\\ No newline at end of file\n/m", '', $result ) ); |
195 | 195 | break; |
196 | 196 | case 'diff-split': |
197 | 197 | $diff = $vars->getVar( $parameters['diff-var'] )->toString(); |
— | — | @@ -211,7 +211,7 @@ |
212 | 212 | $article = self::articleFromTitle( $parameters['namespace'], |
213 | 213 | $parameters['title'] ); |
214 | 214 | |
215 | | - if ( $wgArticle && $article->getTitle() === $wgArticle->getTitle() ) { |
| 215 | + if ( $wgArticle && $article->getTitle()->equals( $wgArticle->getTitle() ) ) { |
216 | 216 | $textVar = $parameters['text-var']; |
217 | 217 | |
218 | 218 | $new_text = $vars->getVar( $textVar )->toString(); |