Fixed E_NOTICE: array to string conversion in parserTests.
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 8 Apr 2008 16:06:17 +0000 (16:06 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 8 Apr 2008 16:06:17 +0000 (16:06 +0000)
maintenance/parserTests.inc

index 0e943a0..c2f4938 100644 (file)
@@ -313,7 +313,8 @@ class ParserTest {
                        } else if (preg_match('/\\bcat\\b/i', $opts)) {
                                global $wgOut;
                                $wgOut->addCategoryLinks($output->getCategories());
-                               $out = $this->tidy( implode( ' ', $wgOut->getCategoryLinks() ) );
+                               $cats = $wgOut->getCategoryLinks();
+                               $out = $this->tidy( implode( ' ', $cats['normal'] ) );
                        }
 
                        $result = $this->tidy($result);