Skip to content

Commit

Permalink
No need to authenticate, just load the language.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 23, 2013
1 parent 3af5f94 commit 5cffd99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imp/lib/Compose/LinkedAttachment.php
Expand Up @@ -196,9 +196,9 @@ public function sendNotification()

/* Load user prefs to correctly translate gettext strings. */
if (!$registry->getAuth()) {
$registry->setAuth($this->_user, array(), array(
'app' => 'imp'
));
$prefs = $injector->getInstance('Horde_Core_Factory_Prefs')
->create('imp', array('user' => $this->_user));
$registry->setLanguageEnvironment($prefs->getValue('language'));
}

$h = new Horde_Mime_Headers();
Expand Down

0 comments on commit 5cffd99

Please sign in to comment.