From 953ca1785f1493f2e50e566b3c744dbb65615b9f Mon Sep 17 00:00:00 2001 From: rechosen Date: Fri, 16 Aug 2013 14:41:15 +0200 Subject: [ticket/11792] Add performance remark to core.user_setup event PHPDoc To prevent extension authors from loading all their translations globally, a remark on this was added to the PHPDoc documentation of the core.user_setup event. PHPBB3-11792 --- phpBB/phpbb/user.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'phpBB/phpbb/user.php') diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index 94cf77990e..656c17aadd 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -145,6 +145,9 @@ class phpbb_user extends phpbb_session * 'ext_name' => (string) [extension name], * 'lang_set' => (string|array) [language files], * ) + * For performance reasons, only load translations + * that are absolutely needed globally using this + * event. Use local events otherwise. * @var mixed style_id Style we are going to display * @since 3.1-A1 */ -- cgit v1.2.1