[Pkg-mediawiki-devel] Bug#658682: Bug#658682: mediawiki: Block is missing method prevents()

Nye Liu 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.

line 3683:

    elseif( $user->isBlocked() && $user->mBlock->prevents( $action ) !== false) 

However, this depends on the DNSBlacklist working, which it doesn't
quite:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658672

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 mailing list