Localisation updates for core and extension messages from translatewiki.net
[toast/cookiecaptcha.git] / ConfirmEdit.php
index 2d75130d2980ae74a164a32d6f4e6fec444f1875..8a18a844966b185fd705e1954b14742eba5d4b1b 100644 (file)
@@ -40,11 +40,9 @@ $wgExtensionFunctions[] = 'confirmEditSetup';
 $wgExtensionCredits['other'][] = array(
        'path' => __FILE__,
        'name' => 'ConfirmEdit',
-       'author' => 'Brion Vibber',     /* Add "and others" here when you find
-                                                                * a way to do it properly with
-                                                                * i18n */
+       'author' => array( 'Brion Vibber', '...' ),
        'url' => 'http://www.mediawiki.org/wiki/Extension:ConfirmEdit',
-       'version' => '1.0',
+       'version' => '1.1',
        'descriptionmsg' => 'captcha-desc',
 );
 
@@ -93,7 +91,7 @@ $wgCaptchaClass = 'SimpleCaptcha';
  */
 $wgCaptchaTriggers = array();
 $wgCaptchaTriggers['edit']          = false; // Would check on every edit
-$wgCaptchaTriggers['create']           = false; // Check on page creation.
+$wgCaptchaTriggers['create']        = false; // Check on page creation.
 $wgCaptchaTriggers['sendemail']     = false; // Special:Emailuser
 $wgCaptchaTriggers['addurl']        = true;  // Check on edits that add URLs
 $wgCaptchaTriggers['createaccount'] = true;  // Special:Userlogin&type=signup
@@ -181,7 +179,7 @@ $wgCaptchaWhitelist = false;
 $wgCaptchaRegexes = array();
 
 /** Register special page */
-$wgSpecialPages['Captcha'] = array( /*class*/'CaptchaSpecialPage', /*name*/'Captcha' );
+$wgSpecialPages['Captcha'] = 'CaptchaSpecialPage';
 
 $wgConfirmEditIP = dirname( __FILE__ );
 $wgExtensionMessagesFiles['ConfirmEdit'] = "$wgConfirmEditIP/ConfirmEdit.i18n.php";
@@ -202,12 +200,14 @@ $wgHooks['EmailUser'][] = 'ConfirmEditHooks::confirmEmailUser';
 # Register API hook
 $wgHooks['APIEditBeforeSave'][] = 'ConfirmEditHooks::confirmEditAPI';
 
-$wgAutoloadClasses['ConfirmEditHooks']
-       = $wgAutoloadClasses['SimpleCaptcha']
-       = $wgAutoloadClasses['CaptchaSessionStore']
-       = $wgAutoloadClasses['CaptchaCacheStore']
-       = $wgAutoloadClasses['CaptchaSpecialPage']
-       = "$wgConfirmEditIP/ConfirmEdit_body.php";
+$wgAutoloadClasses['ConfirmEditHooks'] = "$wgConfirmEditIP/ConfirmEditHooks.php";
+$wgAutoloadClasses['Captcha']= "$wgConfirmEditIP/Captcha.php";
+$wgAutoloadClasses['SimpleCaptcha']= "$wgConfirmEditIP/Captcha.php";
+$wgAutoloadClasses['CaptchaStore']= "$wgConfirmEditIP/CaptchaStore.php";
+$wgAutoloadClasses['CaptchaSessionStore']= "$wgConfirmEditIP/CaptchaStore.php";
+$wgAutoloadClasses['CaptchaCacheStore']= "$wgConfirmEditIP/CaptchaStore.php";
+$wgAutoloadClasses['CaptchaSpecialPage'] = "$wgConfirmEditIP/ConfirmEditHooks.php";
+$wgAutoloadClasses['HTMLCaptchaField']= "$wgConfirmEditIP/HTMLCaptchaField.php";
 
 /**
  * Set up $wgWhitelistRead