diff options
-rw-r--r-- | inc/common.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php index ec500d906..866c64b8c 100644 --- a/inc/common.php +++ b/inc/common.php @@ -787,6 +787,9 @@ function saveWikiText($id,$text,$summary,$minor=false){ } if ($wasRemoved){ + // Send "update" event with empty data, so plugins can react to page deletion + $data = array(array($file, '', false), getNS($id), noNS($id), false); + trigger_event('IO_WIKIPAGE_WRITE', $data); // pre-save deleted revision @touch($file); clearstatcache(); |