diff options
Diffstat (limited to 'extensions/ConfirmEdit/MathCaptcha.php')
-rw-r--r-- | extensions/ConfirmEdit/MathCaptcha.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/ConfirmEdit/MathCaptcha.php b/extensions/ConfirmEdit/MathCaptcha.php index 297feb5c..8c815bf7 100644 --- a/extensions/ConfirmEdit/MathCaptcha.php +++ b/extensions/ConfirmEdit/MathCaptcha.php @@ -12,8 +12,10 @@ */ if ( !defined( 'MEDIAWIKI' ) ) { - echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" ); - die( 1 ); + exit; } +require_once dirname( __FILE__ ) . '/ConfirmEdit.php'; +$wgCaptchaClass = 'MathCaptcha'; + $wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php'; |