From 3339935db316859b38a820b7cf3ebff204b72d7f Mon Sep 17 00:00:00 2001 From: Michael Cullum Date: Fri, 16 Mar 2012 14:58:29 +0000 Subject: [feature/events] Adding core.common ledge PHPBB3-9550 --- phpBB/common.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index 81fe275008..9cf2617b07 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -143,3 +143,5 @@ if (!$config['use_system_cron']) { $cron = new phpbb_cron_manager(new phpbb_cron_task_provider($phpbb_extension_manager), $cache->get_driver()); } + +$phpbb_dispatcher->dispatch('core.common'); -- cgit v1.2.1 From 01369dd7f826a27e9970e0c0acb126cb2349c87c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 31 Jul 2012 23:50:31 +0200 Subject: [feature/php-events] Add docs to core.common @todo: Add event to user::setup() after branch is updated to develop, so timezone handling is there PHPBB3-9550 --- phpBB/common.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index 9cf2617b07..e18c27abd1 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -144,4 +144,17 @@ if (!$config['use_system_cron']) $cron = new phpbb_cron_manager(new phpbb_cron_task_provider($phpbb_extension_manager), $cache->get_driver()); } +/** +* Main event which is triggered on every page +* +* You can use this event to load function files and initiate objects +* +* NOTE: At this point the global session ($user) and permissions ($auth) +* do NOT exist yet. If you need to use the user objec +* (f.e. to use language files) or need to check permissions, please use +* the core.user_setup event instead! +* +* @event core.common +* @since 3.1-A1 +*/ $phpbb_dispatcher->dispatch('core.common'); -- cgit v1.2.1 From c362434890c075a5c04cfcd40f2809226e33c229 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 8 Aug 2012 13:24:31 +0200 Subject: [feature/php-events] Fix typos in core.common docs block PHPBB3-9550 --- phpBB/common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpBB/common.php') diff --git a/phpBB/common.php b/phpBB/common.php index e18c27abd1..cf990dbc3a 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -150,9 +150,9 @@ if (!$config['use_system_cron']) * You can use this event to load function files and initiate objects * * NOTE: At this point the global session ($user) and permissions ($auth) -* do NOT exist yet. If you need to use the user objec -* (f.e. to use language files) or need to check permissions, please use -* the core.user_setup event instead! +* do NOT exist yet. If you need to use the user object +* (f.e. to include language files) or need to check permissions, +* please use the core.user_setup event instead! * * @event core.common * @since 3.1-A1 -- cgit v1.2.1