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
This commit is contained in:
Amir Sarabadani 2024-01-23 01:00:02 +01:00
parent 1e1e9e89ba
commit a84d6f0fc2

View file

@ -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" );