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 committed by Reedy
parent 7a45d6c6d5
commit 439e4130cc

View file

@ -126,6 +126,7 @@ class GenerateFancyCaptchas extends Maintenance {
$result = Shell::command( [] )
->params( $cmd )
->limits( [ 'time' => 0 ] )
->disableSandbox()
->execute();
if ( $result->getExitCode() != 0 ) {
$this->output( " Failed.\n" );