On 25.05.2008, 10:52 VasilievVV wrote:
Max Semenik managed to write:
API is intended for bots, not humans. Making it
accept anon edits just
allows bots to edit accidentally logged off. And the AssertEdit
extension doesn't seem to work for API. What can be done about this?
Simply adding an AlternateEdit hook call to ApiEditPage leads to ugly
HTML output.
I thought about assertions in API. I'll add them this week.
--VasilievVV
This hook was implemented by Bryan Tong Minh in 35294[1], and in
conjunction wit AssertEdit it leads, as I warned, to AssertEdit
attempting to display a HTML error page and choking with
"Fatal error: Call to a member function getPrefixedText() on a
non-object in C:\Projects\MediaWiki\includes\OutputPage.php on line
1314" instead of proper XML output. I suppose that other extensions
that don't expect to be called from API may exhibit the same
behaviour.
----
[1]
http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=35294
--
Best regards,
Max Semenik ([[User:MaxSem]])