diff --git a/views/bootstrap/class.Login.php b/views/bootstrap/class.Login.php index c3b8eac3d..c43153ffb 100644 --- a/views/bootstrap/class.Login.php +++ b/views/bootstrap/class.Login.php @@ -68,9 +68,13 @@ function checkForm() function guestLogin() { - url = "../op/op.Login.php?login=guest" + - "&sesstheme=" + document.form1.sesstheme.options[document.form1.sesstheme.options.selectedIndex].value + - "&lang=" + document.form1.lang.options[document.form1.lang.options.selectedIndex].value; + theme = $("#themeselector").val(); + lang = $("#languageselector").val(); + url = "../op/op.Login.php?login=guest"; + if(theme) + url += "&sesstheme=" + theme; + if(lang) + url += "&lang=" + lang; if (document.form1.referuri) { url += "&referuri=" + escape(document.form1.referuri.value); } @@ -102,7 +106,7 @@ function guestLogin()
"; + print ""; print "