Skip to content

Commit

Permalink
[mms] Fix rebuilding the folder tree translations when the language i…
Browse files Browse the repository at this point in the history
…s changed in a session (Bug #13821).
  • Loading branch information
slusarz committed Jan 21, 2015
1 parent 7bef67e commit 1a864ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions imp/docs/CHANGES
Expand Up @@ -2,6 +2,8 @@
v6.2.7-git
----------

[mms] Fix rebuilding the folder tree translations when the language is changed
in a session (Bug #13821).


------
Expand Down
9 changes: 8 additions & 1 deletion imp/lib/Application.php
Expand Up @@ -472,7 +472,14 @@ public function topbarCreate(Horde_Tree_Renderer_Base $tree,
*/
public function changeLanguage()
{
$GLOBALS['injector']->getInstance('IMP_Ftree')->init();
global $injector;

$injector->getInstance('IMP_Mailbox_SessionCache')->expire(array(
IMP_Mailbox_SessionCache::CACHE_DISPLAY,
IMP_Mailbox_SessionCache::CACHE_LABEL
));

$injector->getInstance('IMP_Ftree')->init();
}

/* NoSQL methods. */
Expand Down
4 changes: 2 additions & 2 deletions imp/package.xml
Expand Up @@ -33,7 +33,7 @@
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
*
* [mms] Fix rebuilding the folder tree translations when the language is changed in a session (Bug #13821).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -3814,7 +3814,7 @@
<date>2015-01-20</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
*
* [mms] Fix rebuilding the folder tree translations when the language is changed in a session (Bug #13821).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 1a864ca

Please sign in to comment.