When including phpESP using /public/handler.php you can specify the
language of your survey by supplying the language in a $lang variable. If
you specify this variable, the login screen should not show the language
chooser dropdown, unfortunately this does not work.
Reason is the fact that the language variable is not available within the
function show_login() that is part of admin/include/lib/esphtml.forms.inc
Solution is to change the variable $lang into $_SESSION['language'] on line
194:
# if the variable $lang is set, we assume we don't need to ask for the
language
if ((!isset($_REQUEST['lang']) && !isset($lang)) || empty($lang)) {
fixed:
# if the variable $lang is set, we assume we don't need to ask for the
language
if ((!isset($_REQUEST['lang']) && !$_SESSION['language']) ||
empty($_SESSION['language'])) {
Arjen
Nobody/Anonymous
None
None
Public
|
Date: 2009-11-18 21:50 Well, I was right about the localization, but indeed the $lang needs to be |
|
Date: 2009-11-18 21:43 The login box *is* localized, but I suspect the same reason counts as in |
|
Date: 2009-11-17 20:24 I would really like a way to loose the dropdown, so the respondents don't |
|
Date: 2009-11-17 20:00 Might we want the drop-down to remain, even though the value is preset? |
|
Date: 2009-11-16 20:52 will take a look at it asap :-) |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-11-18 21:50 | liedekef |
| resolution_id | None | 2009-11-18 21:50 | liedekef |
| allow_comments | 1 | 2009-11-18 21:50 | liedekef |
| close_date | - | 2009-11-18 21:50 | liedekef |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use