summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-09 08:44:30 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-09 08:44:30 -0500
commitf4e8cc6d9f88e78876baa54d0ffba77694c56a1b (patch)
tree1e55ae6a5724be020d1d39f729c4433f369c87e8 /index.php
parent5d246299b630c55d98cc03eeb650561defbeeff4 (diff)
Add InitializePlugin and CleanupPlugin events
We add two events to allow plugins to initialize and cleanup.
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index dac5a8071..0a79b9731 100644
--- a/index.php
+++ b/index.php
@@ -85,3 +85,8 @@ if (!file_exists($actionfile)) {
$sac->showPage();
}
}
+
+// XXX: cleanup exit() calls or add an exit handler so
+// this always gets called
+
+Event::handle('CleanupPlugin');