summaryrefslogtreecommitdiff
path: root/extensions/ConfirmEdit/MathCaptcha.php
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/ConfirmEdit/MathCaptcha.php')
-rw-r--r--extensions/ConfirmEdit/MathCaptcha.php6
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';