Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/212848
Change subject: Move MathCaptcha to it's own place
......................................................................
Move MathCaptcha to it's own place
3a. step before using ExtensionRegistration.
Bug: T88047
Change-Id: I809f1105ce3c7f5a6a2be7ebc6565c5187b7a76d
---
M FancyCaptcha/FancyCaptcha.php
M MathCaptcha.php
R MathCaptcha/MathCaptcha.class.php
A MathCaptcha/MathCaptcha.php
4 files changed, 23 insertions(+), 21 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmEdit
refs/changes/48/212848/1
diff --git a/FancyCaptcha/FancyCaptcha.php b/FancyCaptcha/FancyCaptcha.php
index 403d23c..3d22329 100644
--- a/FancyCaptcha/FancyCaptcha.php
+++ b/FancyCaptcha/FancyCaptcha.php
@@ -29,7 +29,7 @@
exit;
}
-require_once __DIR__ . '/../ConfirmEdit.php';
+require_once dirname( __DIR__ ) . '/ConfirmEdit.php';
$wgCaptchaClass = 'FancyCaptcha';
/**
diff --git a/MathCaptcha.php b/MathCaptcha.php
index 7bfb493..dd34d53 100644
--- a/MathCaptcha.php
+++ b/MathCaptcha.php
@@ -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 <[email protected]>
- * @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";
diff --git a/MathCaptcha.class.php b/MathCaptcha/MathCaptcha.class.php
similarity index 100%
rename from MathCaptcha.class.php
rename to MathCaptcha/MathCaptcha.class.php
diff --git a/MathCaptcha/MathCaptcha.php b/MathCaptcha/MathCaptcha.php
new file mode 100644
index 0000000..fa0cd15
--- /dev/null
+++ b/MathCaptcha/MathCaptcha.php
@@ -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 <[email protected]>
+ * @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';
--
To view, visit https://gerrit.wikimedia.org/r/212848
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I809f1105ce3c7f5a6a2be7ebc6565c5187b7a76d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmEdit
Gerrit-Branch: REL1_25
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits