mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 09:30:06 +00:00
Move MathCaptcha to it's own place
3a. step before using ExtensionRegistration. Bug: T88047 Change-Id: I809f1105ce3c7f5a6a2be7ebc6565c5187b7a76d
This commit is contained in:
parent
cad5bc9200
commit
23766bee10
|
@ -29,7 +29,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/../ConfirmEdit.php';
|
||||
require_once dirname( __DIR__ ) . '/ConfirmEdit.php';
|
||||
$wgCaptchaClass = 'FancyCaptcha';
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,21 +1,2 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Captcha class using simple sums and the math renderer
|
||||
* Not brilliant, but enough to dissuade casual spam bots
|
||||
*
|
||||
* @file
|
||||
* @ingroup Extensions
|
||||
* @author Rob Church <robchur@gmail.com>
|
||||
* @copyright © 2006 Rob Church
|
||||
* @licence GNU General Public Licence 2.0
|
||||
*/
|
||||
|
||||
if ( !defined( 'MEDIAWIKI' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/ConfirmEdit.php';
|
||||
$wgCaptchaClass = 'MathCaptcha';
|
||||
|
||||
$wgAutoloadClasses['MathCaptcha'] = __DIR__ . '/MathCaptcha.class.php';
|
||||
require_once __DIR__ . "/MathCaptcha/MathCaptcha.php";
|
||||
|
|
21
MathCaptcha/MathCaptcha.php
Normal file
21
MathCaptcha/MathCaptcha.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Captcha class using simple sums and the math renderer
|
||||
* Not brilliant, but enough to dissuade casual spam bots
|
||||
*
|
||||
* @file
|
||||
* @ingroup Extensions
|
||||
* @author Rob Church <robchur@gmail.com>
|
||||
* @copyright © 2006 Rob Church
|
||||
* @licence GNU General Public Licence 2.0
|
||||
*/
|
||||
|
||||
if ( !defined( 'MEDIAWIKI' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once dirname( __DIR__ ) . '/ConfirmEdit.php';
|
||||
$wgCaptchaClass = 'MathCaptcha';
|
||||
|
||||
$wgAutoloadClasses['MathCaptcha'] = __DIR__ . '/MathCaptcha.class.php';
|
Loading…
Reference in a new issue