X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FMaintenance.php;h=d37b990b2d5ded41b35ce4aed7dd2c3dbb08a23a;hb=fea3bbcdae4f052f769ab466df6e1f5d47d1383c;hp=7de0ae4ccbc0202c3d6d2c8a6505fb7fd30f64d2;hpb=15695b1eef45a4650ad95da0a75818d64e0c14c8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 7de0ae4ccb..d37b990b2d 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -307,6 +307,17 @@ abstract class Maintenance { return $this->hasArg( $argId ) ? $this->mArgs[$argId] : $default; } + /** + * Returns batch size + * + * @since 1.31 + * + * @return int|null + */ + protected function getBatchSize() { + return $this->mBatchSize; + } + /** * Set the batch size. * @param int $s The number of operations to do in a batch @@ -1496,7 +1507,7 @@ abstract class Maintenance { * @return string */ private static function readlineEmulation( $prompt ) { - $bash = Installer::locateExecutableInDefaultPaths( [ 'bash' ] ); + $bash = ExecutableFinder::findInDefaultPaths( 'bash' ); if ( !wfIsWindows() && $bash ) { $retval = false; $encPrompt = wfEscapeShellArg( $prompt );