-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
Sorry for the repeat post, but I've uncovered further problems with the userCan hook.
For some reason it is passing the $action parameter as 'move' or 'edit' (the hook is run several times per a request) when it is 'read' -- this in itself makes no sense to me, on top of the failure of execution experienced before.
Is this intentional?
Thanks, MinuteElectron.
MinuteElectron writes:
Hello,
Sorry for the repeat post, but I've uncovered further problems with the userCan hook.
For some reason it is passing the $action parameter as 'move' or 'edit' (the hook is run several times per a request) when it is 'read' -- this in itself makes no sense to me, on top of the failure of execution experienced before.
Is this intentional?
Thanks, MinuteElectron.
It is for displaying (or not displaying) tabs, I think. Try to dump traceback. --VasilievVV
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
vasilvv@gmail.com wrote:
It is for displaying (or not displaying) tabs, I think.
Yes, I thought about this as I was going to bed last night (already switched the computer off). That's the only logical explanation, and there are no tabs on special pages which explains the reduced number of calls. It is still odd why the hook is not called on any special pages while logged out though.
MinuteElectron.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
MinuteElectron wrote:
vasilvv@gmail.com wrote:
It is for displaying (or not displaying) tabs, I think.
Yes, I thought about this as I was going to bed last night (already switched the computer off). That's the only logical explanation, and there are no tabs on special pages which explains the reduced number of calls. It is still odd why the hook is not called on any special pages while logged out though.
MinuteElectron.
Fixed in r32324 -- a hack was circumventing checks on read locked wikis.
MinuteElectron.
wikitech-l@lists.wikimedia.org