fix to language var

skala
Yannick Warnier 15 years ago
parent c747fd729b
commit feb68ecf6d
  1. 13
      main/inc/lib/main_api.lib.php
  2. 2
      main/lang/english/trad4all.inc.php

@ -1022,16 +1022,13 @@ function api_session_start($already_installed = true) {
global $storeSessionInDb;
global $_configuration;
/* causes too many problems and is not configurable dynamically
if($already_installed){
if ($already_installed) {
$session_lifetime = 360000;
if(isset($_configuration['session_lifetime']))
{
if (isset($_configuration['session_lifetime'])) {
$session_lifetime = $_configuration['session_lifetime'];
}
session_set_cookie_params($session_lifetime,api_get_path(REL_PATH));
}*/
//session_set_cookie_params($session_lifetime,api_get_path(REL_PATH));
}
if (is_null($storeSessionInDb)) {
$storeSessionInDb = false;
@ -1046,8 +1043,10 @@ function api_session_start($already_installed = true) {
if ($already_installed) {
if (empty ($_SESSION['checkDokeosURL'])) {
$_SESSION['checkDokeosURL'] = api_get_path(WEB_PATH);
$_SESSION['session_expiry'] = time() + $session_lifetime;
} elseif ($_SESSION['checkDokeosURL'] != api_get_path(WEB_PATH)) {
api_session_clear();
$_SESSION['session_expiry'] = time() + $session_lifetime;
}
}
}

@ -798,7 +798,7 @@ $ThematicAdvanceQuestions = "What is the current progress you have reached with
$ThematicAdvanceHistory = "Advance history";
$Homepage = "Homepage";
$Attendances = "Attendances";
$ CountDoneAttendance = "# attended";
$CountDoneAttendance = "# attended";
$AssignUsers = "Assign users";
$AssignCourses = "Assign courses";
$AssignSessions = "Assign sessions";

Loading…
Cancel
Save