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 0ee865c commit dcc5faf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imp/lib/Compose/LinkedAttachment.php
Original file line number Diff line number Diff line change
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 dcc5faf

Please sign in to comment.