mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes: * Added .eslintcache to .gitignore. * Fix wrong types Change-Id: I833b061c62b82f3c88d968c70bae8317641aaa3d
This commit is contained in:
parent
08b8f864c0
commit
d481d0c8db
|
@ -45,7 +45,7 @@ class MathCaptcha extends SimpleCaptcha {
|
|||
$index = $this->storeCaptcha( [ 'answer' => $answer ] );
|
||||
|
||||
$form = '<table><tr><td>' . $this->fetchMath( $sum ) . '</td>';
|
||||
$form .= '<td>' . Html::input( 'wpCaptchaWord', false, false, [
|
||||
$form .= '<td>' . Html::input( 'wpCaptchaWord', '', '', [
|
||||
'tabindex' => $tabIndex,
|
||||
'autocomplete' => 'off',
|
||||
'required'
|
||||
|
@ -69,7 +69,7 @@ class MathCaptcha extends SimpleCaptcha {
|
|||
|
||||
/**
|
||||
* Fetch the math
|
||||
* @param int $sum
|
||||
* @param string $sum
|
||||
* @return string
|
||||
*/
|
||||
private function fetchMath( $sum ) {
|
||||
|
|
|
@ -1087,7 +1087,7 @@ class SimpleCaptcha {
|
|||
* @private
|
||||
*/
|
||||
private function loadText( $title, $section, $flags = Revision::READ_LATEST ) {
|
||||
$rev = Revision::newFromTitle( $title, false, $flags );
|
||||
$rev = Revision::newFromTitle( $title, 0, $flags );
|
||||
if ( is_null( $rev ) ) {
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"mediawiki/mediawiki-codesniffer": "28.0.0",
|
||||
"jakub-onderka/php-console-highlighter": "0.3.2",
|
||||
"mediawiki/minus-x": "0.3.2",
|
||||
"mediawiki/mediawiki-phan-config": "0.8.0"
|
||||
"mediawiki/mediawiki-phan-config": "0.9.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": [
|
||||
|
|
|
@ -29,7 +29,7 @@ abstract class CaptchaStore {
|
|||
|
||||
/**
|
||||
* The singleton instance
|
||||
* @var CaptchaStore
|
||||
* @var CaptchaStore|null
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ class GenerateFancyCaptchas extends Maintenance {
|
|||
wfEscapeShellArg( dirname( __DIR__ ) . '/' . $captchaScript ),
|
||||
wfEscapeShellArg( $wgCaptchaSecret ),
|
||||
wfEscapeShellArg( $tmpDir ),
|
||||
wfEscapeShellArg( $countGen ),
|
||||
wfEscapeShellArg( (string)$countGen ),
|
||||
wfEscapeShellArg( $wgCaptchaDirectoryLevels )
|
||||
);
|
||||
foreach (
|
||||
|
|
Loading…
Reference in a new issue