*/
public function setUser( User $user ) {
$this->user = $user;
+ // Invalidate cached user interface language
+ $this->lang = null;
}
/**
$obj = Language::factory( $code );
$this->lang = $obj;
}
-
- unset( $this->recursion );
- }
- catch ( Exception $ex ) {
+ } finally {
unset( $this->recursion );
- throw $ex;
}
}