From: Alexandre Emsenhuber Date: Sun, 11 Dec 2011 09:44:02 +0000 (+0000) Subject: Use WikiPage instead of Article X-Git-Tag: 1.31.0-rc.0~26094 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=658f17dbeed4b8655d8681dc188719a527749cd1;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article --- diff --git a/tests/parser/parserTest.inc b/tests/parser/parserTest.inc index d9acf6a2ab..e7478f2510 100644 --- a/tests/parser/parserTest.inc +++ b/tests/parser/parserTest.inc @@ -1167,8 +1167,8 @@ class ParserTest { throw new MWException( "duplicate article '$name' at line $line\n" ); } - $art = new Article( $title ); - $art->doEdit( $text, '', EDIT_NEW ); + $page = WikiPage::factory( $title ); + $page->doEdit( $text, '', EDIT_NEW ); $wgCapitalLinks = $oldCapitalLinks; }