mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-15 20:09:25 +00:00
Merge "(bug 37643) Ensure a session is created when necessary for Captcha"
This commit is contained in:
commit
6d557c0511
|
@ -59,6 +59,13 @@ abstract class CaptchaStore {
|
|||
|
||||
class CaptchaSessionStore extends CaptchaStore {
|
||||
|
||||
protected function __construct() {
|
||||
// Make sure the session is started
|
||||
if ( session_id() === '' ) {
|
||||
wfSetupSession();
|
||||
}
|
||||
}
|
||||
|
||||
function store( $index, $info ) {
|
||||
$_SESSION['captcha' . $info['index']] = $info;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue