https://bugzilla.wikimedia.org/show_bug.cgi?id=19677
Bryan Tong Minh <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Bryan Tong Minh <[email protected]> 2009-07-12 19:22:03 UTC --- (In reply to comment #3) > Additional information: When I change my code as follows, the page gets > created successfully: > > 1. Add "global $wgEnableWriteAPI;" to the beginning of the method that > creates > the pages > > 2. Create the ApiMain object as follows: > > $api = new ApiMain($params, $wgEnableWriteAPI); > > But, that's not my understanding of how the API is supposed to work. > That is how its supposed to work. The main use for the api is via its entry point in api.php, which does work that way. The use of the API in extensions is only of secondary importance. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
