From: Brion Vibber Date: Tue, 8 Mar 2005 02:45:25 +0000 (+0000) Subject: * Respect read-only mode on block removals X-Git-Tag: 1.5.0alpha1~666 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=4049a9d9e16dcd5b8c5af55b3e019a2551912c05;p=lhc%2Fweb%2Fwiklou.git * Respect read-only mode on block removals --- diff --git a/includes/Block.php b/includes/Block.php index 7ab2583f51..5ea64f60f0 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -198,6 +198,9 @@ class Block function delete() { $fname = 'Block::delete'; + if (wfReadOnly()) { + return; + } $dbw =& wfGetDB( DB_MASTER ); if ( $this->mAddress == '' ) {