mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-09-23 18:30:21 +00:00
Follow-up r86813: fix exceptions seen on TWN. Ironically, I changed the CaptchaStore from an interface to an abstract class precisely to move into it the function which was throwing the exception... :D
This commit is contained in:
parent
86f875a58a
commit
e28655e124
|
@ -42,7 +42,7 @@ abstract class CaptchaStore {
|
|||
public final static function get() {
|
||||
if( !self::$instance instanceof self ){
|
||||
global $wgCaptchaStorageClass;
|
||||
if( in_array( 'CaptchaStore', class_implements( $wgCaptchaStorageClass ) ) ) {
|
||||
if( in_array( 'CaptchaStore', class_parents( $wgCaptchaStorageClass ) ) ) {
|
||||
self::$instance = new $wgCaptchaStorageClass;
|
||||
} else {
|
||||
throw new MWException( "Invalid CaptchaStore class $wgCaptchaStorageClass" );
|
||||
|
|
Loading…
Reference in a new issue