Travis Derouin <travis@...> writes:
I think you have to clear the redirect that updateArticle sets in $wgOut.
$wgOut->redirect(''); // clear the redirect, we want to show a nice page of images
Thanks a lot, Travis. Your answer saved me a lot of time since I intended (after hours of reading the code and thinking that in updateArticle/insertNewArticle only the case of real page redirects is handled) to look even deeper at other parts to find the place where the redirect is perhaps set (to disable it there) instead of just deleting the redirect :)
I had to do something like this for the multiupload extension, which may be of some use to you:
No, I actually already had written the code, and then noticed it didn't behave the way I wanted it to in certain cases (and could also reproduce this behavior with SpecialUpload). My task was to upload certain files that are in a ZIP archive (instead of the ZIP archive itself).
Regards, Andreas