diff options
author | 2013-08-16 14:41:15 +0200 | |
---|---|---|
committer | 2013-08-19 11:06:36 +0200 | |
commit | 953ca1785f1493f2e50e566b3c744dbb65615b9f (patch) | |
tree | c93b0872a6d2b293657d022f0ea39dbb109b42b5 /phpBB/phpbb/user.php | |
parent | [ticket/11792] Add variable 'lang_set_ext' to event core.user_setup (diff) | |
download | phpbb-953ca1785f1493f2e50e566b3c744dbb65615b9f.tar.gz phpbb-953ca1785f1493f2e50e566b3c744dbb65615b9f.tar.bz2 phpbb-953ca1785f1493f2e50e566b3c744dbb65615b9f.zip |
[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
Diffstat (limited to 'phpBB/phpbb/user.php')
-rw-r--r-- | phpBB/phpbb/user.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |