aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-05 15:35:53 -0700
committerFriendika <info@friendika.com>2011-10-05 15:35:53 -0700
commitb1e5dfad3cb3881bb2e5655ede1b64adaff32dcc (patch)
tree8cf2137c4c34b73959ada8da6d2f26d85ca190ca /include
parent09fcfe2fe7f0a208b3c5fb391e3d5a1a003c141f (diff)
downloadvolse-hubzilla-b1e5dfad3cb3881bb2e5655ede1b64adaff32dcc.tar.gz
volse-hubzilla-b1e5dfad3cb3881bb2e5655ede1b64adaff32dcc.tar.bz2
volse-hubzilla-b1e5dfad3cb3881bb2e5655ede1b64adaff32dcc.zip
clean up w3c validation and layout for priv mail and lang selector
Diffstat (limited to 'include')
-rw-r--r--include/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index 701c1e41b..bc711e6da 100644
--- a/include/text.php
+++ b/include/text.php
@@ -865,7 +865,7 @@ function lang_selector() {
global $lang;
$o = '<div id="lang-select-icon" class="icon language" title="' . t('Select an alternate language') . '" onclick="openClose(\'language-selector\');" ></div>';
$o .= '<div id="language-selector" style="display: none;" >';
- $o .= '<form action="" method="post" ><select name="system_language" onchange="this.form.submit();" >';
+ $o .= '<form action="#" method="post" ><select name="system_language" onchange="this.form.submit();" >';
$langs = glob('view/*/strings.php');
if(is_array($langs) && count($langs)) {
$langs[] = '';
@@ -880,7 +880,7 @@ function lang_selector() {
}
$ll = substr($l,5);
$ll = substr($ll,0,strrpos($ll,'/'));
- $selected = (($ll === $lang) ? ' selected="selected" ' : '');
+ $selected = (($ll === $lang && (x($_SESSION['language']))) ? ' selected="selected" ' : '');
$o .= '<option value="' . $ll . '"' . $selected . '>' . $ll . '</option>';
}
}