Move MathCaptcha to it's own place

3a. step before using ExtensionRegistration.

Bug: T88047
Change-Id: I809f1105ce3c7f5a6a2be7ebc6565c5187b7a76d
This commit is contained in:
Florian 2015-05-21 19:02:34 +02:00
parent cad5bc9200
commit 23766bee10
4 changed files with 23 additions and 21 deletions

View file

@ -29,7 +29,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
require_once __DIR__ . '/../ConfirmEdit.php';
require_once dirname( __DIR__ ) . '/ConfirmEdit.php';
$wgCaptchaClass = 'FancyCaptcha';
/**

View file

@ -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";

View 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';