From bcd0a3fc6c2285137c59d3cf912120afe94f1bc3 Mon Sep 17 00:00:00 2001 From: tonythomas01 <01tonythomas@gmail.com> Date: Mon, 30 Dec 2013 23:51:06 +0530 Subject: [PATCH] Fix depreciation warnings in FileBackend construction for ConfirmEdit Modified getBackend() function to add values for WikiID and lockmanager( array() ) Fixed spacing Bug: 58614 Change-Id: I448579ac71809365d9f8c64eccfd2e08949f149d --- FancyCaptcha.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FancyCaptcha.class.php b/FancyCaptcha.class.php index d1c6a41f3..e2dbb82bb 100644 --- a/FancyCaptcha.class.php +++ b/FancyCaptcha.class.php @@ -14,7 +14,8 @@ class FancyCaptcha extends SimpleCaptcha { if ( !$backend ) { $backend = new FSFileBackend( array( 'name' => 'captcha-backend', - 'lockManager' => 'nullLockManager', + 'wikiId' => wfWikiId(), + 'lockManager' => new NullLockManager( array() ), 'containerPaths' => array( 'captcha-render' => $wgCaptchaDirectory ), 'fileMode' => 777 ) );