From f864871e67a7343d5cdce00da0eb50f8138fba15 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 28 Feb 2006 21:48:11 +0100 Subject: unlock a page directly after deletion This should fix a problem making sweepNS() never work darcs-hash:20060228204811-7ad00-79cca976993d8fa662b94fe683b898985d0dc774.gz --- inc/common.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/common.php b/inc/common.php index cef8a0ab0..c321bce82 100644 --- a/inc/common.php +++ b/inc/common.php @@ -827,9 +827,11 @@ function saveWikiText($id,$text,$summary,$minor=false){ if (file_exists($mfile)) @unlink($mfile); } $del = true; - //autoset summary on deletion + // autoset summary on deletion if(empty($summary)) $summary = $lang['deleted']; - //remove empty namespaces + // unlock early + unlock($id); + // remove empty namespaces io_sweepNS($id); }else{ // save file (datadir is created in io_saveFile) -- cgit v1.2.3