Follow up r70917. Having $wgCapitalLinks = false; was what caused the errors.
authorPlatonides <platonides@users.mediawiki.org>
Mon, 23 Aug 2010 21:33:41 +0000 (21:33 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 23 Aug 2010 21:33:41 +0000 (21:33 +0000)
maintenance/parserTests.inc

index 4e9665e..7f38def 100644 (file)
@@ -1029,6 +1029,10 @@ class ParserTest {
         * @param $line Integer: the input line number, for reporting errors
         */
        public function addArticle( $name, $text, $line ) {
+               global $wgCapitalLinks;
+               $oldCapitalLinks = $wgCapitalLinks;
+               $wgCapitalLinks = true; // We only need this from SetupGlobals() See r70917#c8637
+
                $title = Title::newFromText( $name );
                if ( is_null( $title ) ) {
                        wfDie( "invalid title at line $line\n" );
@@ -1041,6 +1045,8 @@ class ParserTest {
 
                $art = new Article( $title );
                $art->insertNewArticle( $text, '', false, false );
+
+               $wgCapitalLinks = $oldCapitalLinks;
        }
 
        /**