mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-15 20:09:25 +00:00
Merge "Added getMessage() method"
This commit is contained in:
commit
792a05cc87
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue