What is the proper way to make an empty edit of an existing article 
programmatically, in a maintenance script? I tried this:

  $title = Title::newFromText("My existing article name");  // succeeds

  $wikiPage = new WikiPage($title);   // succeeds

  $wikiPage->doEditContent($wikiPage->getContent(Revision::RAW), ''); 

but doEditContent just sits there until I get "limit.sh: timed out" in my 
shell.  I can do an empty edit through the browser (click Edit, click Save) 
just fine.

Thanks,
DanB


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to