mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
GenerateFancyCaptchas: Add ->disableSandbox() to shell command
->restrict( Shell::RESTRICT_NONE ) that was removed was by my mistake.
It ::restrict() is deprecated but the internal call, calls
->disableSandbox() when the value is zero.
Follows-Up: I7b71c2f6b1bf05a4f00f2367a795db093dc00867
Change-Id: I6c8ff91aca183bdaa2473d86a029561440ed2ab3
(cherry picked from commit a84d6f0fc2
)
This commit is contained in:
parent
1e1e9e89ba
commit
bfbf0fb327
|
@ -128,6 +128,7 @@ class GenerateFancyCaptchas extends Maintenance {
|
|||
$result = Shell::command( [] )
|
||||
->params( $cmd )
|
||||
->limits( [ 'time' => 0 ] )
|
||||
->disableSandbox()
|
||||
->execute();
|
||||
if ( $result->getExitCode() != 0 ) {
|
||||
$this->output( " Failed.\n" );
|
||||
|
|
Loading…
Reference in a new issue