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 93798cdf9c
commit 27b7b163eb

View file

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