summaryrefslogtreecommitdiff
path: root/maintenance/preprocessorFuzzTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/preprocessorFuzzTest.php')
-rw-r--r--maintenance/preprocessorFuzzTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/maintenance/preprocessorFuzzTest.php b/maintenance/preprocessorFuzzTest.php
index 34960e01..c271b117 100644
--- a/maintenance/preprocessorFuzzTest.php
+++ b/maintenance/preprocessorFuzzTest.php
@@ -4,7 +4,7 @@
* @ingroup Maintenance
*/
-require_once( dirname( __FILE__ ). '/../maintenance/commandLine.inc' );
+require_once( dirname(__FILE__) . '/commandLine.inc' );
$wgHooks['BeforeParserFetchTemplateAndtitle'][] = 'PPFuzzTester::templateHook';
@@ -102,7 +102,8 @@ class PPFuzzTester {
// This resolves a few differences between the old preprocessor and the
// XML-based one, which doesn't like illegals and converts line endings.
// It's done by the MW UI, so it's a reasonably legitimate thing to do.
- $s = UtfNormal::cleanUp( $s );
+ global $wgContLang;
+ $s = $wgContLang->normalize( $s );
return $s;
}