Re: [Wikitech-l] Editpage Object in Hook on EditFilterMergedContent

2013-07-29 Thread Chris Steipp
Hi Anubhav, Neither of those hooks should probably call editpage::spamPageWithContent, since that function's purpose is to show the error/diff to the user. Those hooks are supposed to report back their results with either the error message or the Status object, and allow the edit page to handle

[Wikitech-l] Editpage Object in Hook on EditFilterMergedContent

2013-07-25 Thread anubhav agarwal
Hi, I wish to add a hook on EditFilterMergedContent in my extension. I want to use the editpage object to call editpage-spamPageWithContent() I see that EditFilterMerged is also an option but it doesn't provides me user, I also need the User object. Can anyone please help? Cheers, Anubhav