diff options
author | alecpl <alec@alec.pl> | 2008-04-29 06:44:57 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-04-29 06:44:57 +0000 |
commit | 257782150db70dbe852d1c71fe6fd8abda0229f0 (patch) | |
tree | 46291d36247da38fca40b51a432d7455b3f74078 /program/include/rcube_shared.inc | |
parent | 68ee9b12907a5f0b26851804561d2b88847f6932 (diff) |
- improved messages list performance - patch from Justin Heesemann
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r-- | program/include/rcube_shared.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 556cffd50..eed9662f0 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -92,7 +92,8 @@ function rcube_browser() function rcube_label($attrib) { global $sess_user_lang, $OUTPUT; - static $sa_text_data, $s_language, $utf8_decode; + static $sa_text_data = false; + static $s_language, $utf8_decode; // extract attributes if (is_string($attrib)) @@ -106,7 +107,7 @@ function rcube_label($attrib) // load localized texts - if (!$sa_text_data || $s_language != $sess_user_lang) + if ($sa_text_data===false || $s_language != $sess_user_lang) { $sa_text_data = array(); |