aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorErik Frèrejean <erikfrerejean@phpbb.com>2012-04-10 20:35:30 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:47 +0200
commite21861b488ad4daf88b02aedf4e93d218d250ddc (patch)
tree9d57a1fe2078c9f656800c14eb08bb8e2bdd184c /phpBB/includes
parent586912882833707a51edc44a810c5f174bdce72f (diff)
downloadforums-e21861b488ad4daf88b02aedf4e93d218d250ddc.tar
forums-e21861b488ad4daf88b02aedf4e93d218d250ddc.tar.gz
forums-e21861b488ad4daf88b02aedf4e93d218d250ddc.tar.bz2
forums-e21861b488ad4daf88b02aedf4e93d218d250ddc.tar.xz
forums-e21861b488ad4daf88b02aedf4e93d218d250ddc.zip
[feature/events] Adding core.garbage_collection event
See: http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=42799 for reference. PHPBB3-9550
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 86a2d14315..086755f49d 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5165,6 +5165,9 @@ function page_footer($run_cron = true)
function garbage_collection()
{
global $cache, $db;
+ global $phpbb_dispatcher;
+
+ $phpbb_dispatcher->dispatch('core.garbage_collection');
// Unload cache, must be done before the DB connection if closed
if (!empty($cache))