Block::prevents simply returns true for 'edit'. In Block::newLoad,
prevents was called as a setter with 'edit', but there was nothing
to set - this call was removed in I0e1316964192113. This patch
removes some more lines related to that call.
Originally added in r84475 (
6dbcdc1be097) for T15611.
Change-Id: I8778229d7adfcdee9e21cf560462ef7e7d1c67b3
# Lower will be better
$bestBlockScore = 100;
- # This is begging for $this = $bestBlock, but that's not allowed in PHP :(
- $bestBlockPreventsEdit = null;
-
foreach ( $res as $row ) {
$block = self::newFromRow( $row );
if ( $score < $bestBlockScore ) {
$bestBlockScore = $score;
$bestRow = $row;
- $bestBlockPreventsEdit = $block->appliesToRight( 'edit' );
}
}