aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/Block.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/Block.php b/includes/Block.php
index 7ab2583f51ba..5ea64f60f0db 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 == '' ) {