Easier installation: is now automaticaly set for every additional plugin.
[toast/cookiecaptcha.git] / CaptchaStore.php
index 59b142319cbd92375b258d089124f94b0c7fb9e1..7b29e44804c4b0781f34ba383a06de756c01d34c 100644 (file)
@@ -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" );