Bug: T191947
Change-Id: I16a82d271157cd0024aa14d7eaec80b4870947b5
return true;
}
+ if ( Shell::isDisabled() ) {
+ return true;
+ }
+
# Get a list of available locales.
$result = Shell::command( '/usr/bin/locale', '-a' )
->execute();
* @return bool|string
*/
public static function findInDefaultPaths( $names, $versionInfo = false ) {
+ if ( Shell::isDisabled() ) {
+ // If we can't shell out, there's no point looking for executables
+ return false;
+ }
+
$paths = self::getPossibleBinPaths();
foreach ( (array)$names as $name ) {
foreach ( $paths as $path ) {