summaryrefslogtreecommitdiff
path: root/extensions/ConfirmEdit/Asirra.class.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2013-01-18 16:46:04 +0100
committerPierre Schmitz <pierre@archlinux.de>2013-01-18 16:46:04 +0100
commit63601400e476c6cf43d985f3e7b9864681695ed4 (patch)
treef7846203a952e38aaf66989d0a4702779f549962 /extensions/ConfirmEdit/Asirra.class.php
parent8ff01378c9e0207f9169b81966a51def645b6a51 (diff)
Update to MediaWiki 1.20.2
this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'extensions/ConfirmEdit/Asirra.class.php')
-rw-r--r--extensions/ConfirmEdit/Asirra.class.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/extensions/ConfirmEdit/Asirra.class.php b/extensions/ConfirmEdit/Asirra.class.php
index 1f31d089..cbe51e26 100644
--- a/extensions/ConfirmEdit/Asirra.class.php
+++ b/extensions/ConfirmEdit/Asirra.class.php
@@ -10,12 +10,12 @@ class Asirra extends SimpleCaptcha {
// As we don't have to store anything but some other things to do,
// we're going to replace that constructor completely.
function __construct() {
- global $wgExtensionAssetsPath, $wgAsirraScriptPath;
+ global $wgExtensionAssetsPath;
$this->asirra_localpath = "$wgExtensionAssetsPath/ConfirmEdit";
}
function getForm() {
- global $wgAsirraEnlargedPosition, $wgAsirraCellsPerRow, $wgOut, $wgLang;
+ global $wgOut;
$wgOut->addModules( 'ext.confirmedit.asirra' );
$js = Html::linkedScript( $this->asirra_clientscript );
@@ -29,6 +29,14 @@ JAVASCRIPT
return $js;
}
+ function getMessage( $action ) {
+ $name = 'asirra-' . $action;
+ $text = wfMessage( $name )->text();
+ # Obtain a more tailored message, if possible, otherwise, fall
+ # back to the default for edits
+ return wfMessage( $name, $text )->isDisabled() ? wfMessage( 'asirra-edit' )->text() : $text;
+ }
+
function passCaptcha() {
global $wgRequest;