On 14-07-10 10:23 AM, Jim Hu wrote:
On Jul 10, 2014, at 7:41 AM, Robert Cummings wrote:
On 14-07-10 04:56 AM, Sigbert Klinke wrote:
Hi,
for my extension I also deliver some test pages. Currently I'am exporting the test pages into a XML file and the wiki adminstrator could import them with importDump.php.
Is there a way that the extension automatically integrates some pages into the wiki (of course into my own namespace)?
I use something like the following:
<?php
$titleObj = Title::newFromText( "SomeNamespace:Some Article Title" ); $articleObj = new Article( $titleObj );
I would use WikiPage instead of Article, since a lot of the Article based hooks have been deprecated since 1.21
Thanks for the tip, we haven't jumped to 21 yet :)
Cheers, Rob.