On 15/01/13 14:44, Andreas Plank wrote:
> Hi,
>
> I'm using MW 1.20.2 and I want to get the content of a page for
> further parsing in a PHP application. The PHP application is triggered
> via a special page (Special:MobileKeyV1) and parses nature guides for
> mobile devices.
>
> I tried to get the content via getArticleID() ...
> $titleObj=Title::newFromText("Existing page");
> $articleID=$titleObj->getArticleID();
> Article::newFromID($articleID)->fetchContent();
> etc.
> ... but it returns $articleID=0 although the page exits. With MW 1.18
> this approach worked fine, but after upgrade to MW 1.20.2 it does not
> any more.
It should be working, and it works for me on 1.20.2
Can you provide more details on that $title->getArticleID(); which is
not working?
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l