X-Git-Url: https://git.toastfreeware.priv.at/toast/cookiecaptcha.git/blobdiff_plain/152f5e39e0ad8115470ee380e567a3ea31db6f1b..c7b30198527052bc7db36acd3ee9e826bc1029db:/MathCaptcha.php diff --git a/MathCaptcha.php b/MathCaptcha.php index 772687a..8c815bf 100644 --- a/MathCaptcha.php +++ b/MathCaptcha.php @@ -4,15 +4,18 @@ * Captcha class using simple sums and the math renderer * Not brilliant, but enough to dissuade casual spam bots * - * @addtogroup Extensions + * @file + * @ingroup Extensions * @author Rob Church * @copyright © 2006 Rob Church * @licence GNU General Public Licence 2.0 */ -if( !defined( 'MEDIAWIKI' ) ) { - echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" ); - die( 1 ); +if ( !defined( 'MEDIAWIKI' ) ) { + exit; } -$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php'; +require_once dirname( __FILE__ ) . '/ConfirmEdit.php'; +$wgCaptchaClass = 'MathCaptcha'; + +$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php';