https://bugzilla.wikimedia.org/show_bug.cgi?id=31613

--- Comment #14 from Daniel Friesen <[email protected]> 
2011-10-28 09:58:20 UTC ---
(In reply to comment #13)
> Integrating $_SESSION as Roan suggested is no problem. 
> 
> @Daniel: The collection extension currently implements the API as described in
> http://www.mediawiki.org/wiki/API:Calling_internally 
> If there is a new/better way to create new pages from an extension, the
> documentation should be updated.

That's just a documentation page on how to call the api internally if you
choose to. Namely if you want to use things like the query api internally. It
doesn't even mention editing besides how to handle edit tokens.

The 'other' or rather usual way extensions end up trying to make edits is using
WikiPage::doEdit or the EditPage class itself.

Not sure how good the state of that all is though to be honest. There are extra
checks that EditPage goes and hacks into itself that might actually belong in
doEdit.

That said, it's not like Collection is bothering to check for things like if a
page is actually saved at all.

Also side note, it's making a bad use of Article. All it's doing is checking
for existence, if that's all you want you should be using Title.
It'll break less when we kill off Article in our ideal world.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

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

Reply via email to