[Pkg-mediawiki-devel] Bug#658682: Bug#658682: mediawiki: Block is missing method prevents()
nyet at nyet.org
Wed Feb 29 20:56:11 UTC 2012
On Tue, Feb 28, 2012 at 12:28:26PM +0100, Thorsten Glaser wrote:
> On Sat, 4 Feb 2012, Nye Liu wrote:
> > include/Title.php calls Block::prevents(), which is not implemented:
> How do you trigger this error? I could not.
In my case, when $user->isBlocked() is true due to the DNS blacklist
but not a real MW block.
elseif( $user->isBlocked() && $user->mBlock->prevents( $action ) !== false)
However, this depends on the DNSBlacklist working, which it doesn't
DNSBlacklist almost always reports isBlocked() false (unless the
reverse IP of an IP happens to be blacklisted), so the ->prevents()
never gets called.
More information about the Pkg-mediawiki-devel