Skip to content

Commit

Permalink
MDL-21788 string and setting cleanup of session regen, not needed in …
Browse files Browse the repository at this point in the history
…head where it is always on
  • Loading branch information
skodak committed Mar 19, 2010
1 parent 3be8b5b commit cd1bca8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lang/en_utf8/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@
$string['configrcachettl'] = 'Time-to-live for cached records, in seconds. Use a short (<15) value here.';
$string['configrecaptchaprivatekey'] = 'String of characters used to communicate between your Moodle server and the recaptcha.net server. Obtain one for this site by visiting http://recaptcha.net';
$string['configrecaptchapublickey'] = 'String of characters used to display the reCAPTCHA element in the signup form. Generated by http://recaptcha.net';
$string['configregenloginsession'] = 'Regeneration of the session id during each login request is highly recommended. This setting might not be compatible with some authentication plugins.';
$string['configrequestedstudentname'] = 'Word for student used in requested courses';
$string['configrequestedstudentsname'] = 'Word for students used in requested courses';
$string['configrequestedteachername'] = 'Word for teacher used in requested courses';
Expand Down Expand Up @@ -762,7 +761,6 @@
$string['rcachettl'] = 'Record cache TTL';
$string['recaptchapublickey'] = 'ReCAPTCHA public key';
$string['recaptchaprivatekey'] = 'ReCAPTCHA private key';
$string['regenloginsession'] = 'Regenerate session id during login';
$string['registration'] = 'Registration';
$string['releasenoteslink'] = 'For information about this version of Moodle, please see the online <a target=\"_blank\" href=\"$a\">Release Notes</a>';
$string['remotelangnotavailable'] = 'Because Moodle can not connect to download.moodle.org, we are unable to do language pack installation automatically. Please download the appropriate zip file(s) from the list below, copy them to your $a directory and unzip them manually.';
Expand Down
6 changes: 6 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3121,6 +3121,12 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint($result, 2010031800);
}

if ($result && $oldversion < 2010031900) {
// regeneration of sessions is always enabled, no need for this setting any more
unset_config('regenloginsession');
upgrade_main_savepoint($result, 2010031900);
}

return $result;
}

Expand Down

0 comments on commit cd1bca8

Please sign in to comment.