diff options
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 482bb1e2d..47defb8af 100644 --- a/inc/common.php +++ b/inc/common.php @@ -487,7 +487,7 @@ function parsedWiki($id,$rev='',$excuse=true){ //ensure $id is in global $ID (needed for parsing) global $ID; $ID = $id; - + if($rev){ if(@file_exists($file)){ $ret = parse(io_readFile($file)); @@ -689,6 +689,8 @@ function saveWikiText($id,$text,$summary){ $del = true; //autoset summary on deletion if(empty($summary)) $summary = $lang['deleted']; + //remove empty namespaces + io_sweepNS($id); }else{ // save file (datadir is created in io_saveFile) io_saveFile($file,$text); |