* constructor. */
require_once dirname(__FILE__) . '/lib/Application.php';
try {
- Horde_Registry::appInit('horde', array('authentication' => 'throw', 'nologintasks' => true));
+ Horde_Registry::appInit('horde', array('authentication' => 'none', 'nologintasks' => true));
} catch (Horde_Exception $e) {}
$app = Horde_Util::getFormData('app');
$is_auth = null;
}
- $language = isset($prefs)
- ? $prefs->getValue('language')
- : Horde_Nls::select();
+ $language = $prefs->getValue('language');
$entry = sprintf('User %s [%s] logged out of Horde', Horde_Auth::getAuth(), $_SERVER['REMOTE_ADDR']);
Horde::logMessage($entry, 'NOTICE');
}
/* Build the <select> widget containing the available languages. */
-if (!$is_auth && isset($prefs) && !$prefs->isLocked('language')) {
+if (!$is_auth && !$prefs->isLocked('language')) {
$_SESSION['horde_language'] = Horde_Nls::select();
$langs = array();
if ($browser->isMobile()) {
/* Build the <select> widget containing the available languages. */
- if (!$is_auth && isset($prefs) && !$prefs->isLocked('language')) {
+ if (!$is_auth && !$prefs->isLocked('language')) {
$tmp = array();
foreach ($langs as $val) {
$tmp[$val['val']] = array(