From 4049a9d9e16dcd5b8c5af55b3e019a2551912c05 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 8 Mar 2005 02:45:25 +0000 Subject: [PATCH] * Respect read-only mode on block removals --- includes/Block.php | 3 +++ 1 file changed, 3 insertions(+) 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 == '' ) { -- 2.20.1