http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99827
Revision: 99827
Author: bachsau
Date: 2011-10-14 23:09:19 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
Easier installation: is now automaticaly set for every additional plugin.
Modified Paths:
--------------
trunk/extensions/ConfirmEdit/FancyCaptcha.php
trunk/extensions/ConfirmEdit/MathCaptcha.php
trunk/extensions/ConfirmEdit/QuestyCaptcha.php
trunk/extensions/ConfirmEdit/ReCaptcha.php
Modified: trunk/extensions/ConfirmEdit/FancyCaptcha.php
===================================================================
--- trunk/extensions/ConfirmEdit/FancyCaptcha.php 2011-10-14 23:06:44 UTC
(rev 99826)
+++ trunk/extensions/ConfirmEdit/FancyCaptcha.php 2011-10-14 23:09:19 UTC
(rev 99827)
@@ -29,6 +29,9 @@
exit;
}
+require_once dirname( __FILE__ ) . '/ConfirmEdit.php';
+$wgCaptchaClass = 'FancyCaptcha';
+
global $wgCaptchaDirectory;
$wgCaptchaDirectory = "$wgUploadDirectory/captcha"; // bad default :D
Modified: trunk/extensions/ConfirmEdit/MathCaptcha.php
===================================================================
--- trunk/extensions/ConfirmEdit/MathCaptcha.php 2011-10-14 23:06:44 UTC
(rev 99826)
+++ trunk/extensions/ConfirmEdit/MathCaptcha.php 2011-10-14 23:09:19 UTC
(rev 99827)
@@ -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';
Modified: trunk/extensions/ConfirmEdit/QuestyCaptcha.php
===================================================================
--- trunk/extensions/ConfirmEdit/QuestyCaptcha.php 2011-10-14 23:06:44 UTC
(rev 99826)
+++ trunk/extensions/ConfirmEdit/QuestyCaptcha.php 2011-10-14 23:09:19 UTC
(rev 99827)
@@ -28,6 +28,9 @@
exit;
}
+require_once dirname( __FILE__ ) . '/ConfirmEdit.php';
+$wgCaptchaClass = 'QuestyCaptcha';
+
global $wgCaptchaQuestions;
$wgCaptchaQuestions = array();
Modified: trunk/extensions/ConfirmEdit/ReCaptcha.php
===================================================================
--- trunk/extensions/ConfirmEdit/ReCaptcha.php 2011-10-14 23:06:44 UTC (rev
99826)
+++ trunk/extensions/ConfirmEdit/ReCaptcha.php 2011-10-14 23:09:19 UTC (rev
99827)
@@ -10,10 +10,13 @@
* @licence MIT/X11
*/
-if( !defined( 'MEDIAWIKI' ) ) {
+if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
+require_once dirname( __FILE__ ) . '/ConfirmEdit.php';
+$wgCaptchaClass = 'ReCaptcha';
+
$wgExtensionMessagesFiles['ReCaptcha'] = dirname( __FILE__ ) .
'/ReCaptcha.i18n.php';
require_once( 'recaptchalib.php' );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs