diff options
author | rechosen <rechosen@gmail.com> | 2013-08-16 14:41:15 +0200 |
---|---|---|
committer | rechosen <rechosen@gmail.com> | 2013-08-19 11:06:36 +0200 |
commit | 953ca1785f1493f2e50e566b3c744dbb65615b9f (patch) | |
tree | c93b0872a6d2b293657d022f0ea39dbb109b42b5 /phpBB/phpbb/user.php | |
parent | 88e5ba4e571ad0473e988ea88cf6f5d5df700ef0 (diff) | |
download | forums-953ca1785f1493f2e50e566b3c744dbb65615b9f.tar forums-953ca1785f1493f2e50e566b3c744dbb65615b9f.tar.gz forums-953ca1785f1493f2e50e566b3c744dbb65615b9f.tar.bz2 forums-953ca1785f1493f2e50e566b3c744dbb65615b9f.tar.xz forums-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 */ |