From 8eb08a4ea59cb65fb74d383d605bfdb9bd3e2c23 Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Mon, 10 Oct 2016 10:09:51 -0400 Subject: [PATCH] Fix #2379. drush_is_windows() no longer accepted an parameter. --- includes/startup.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/startup.inc b/includes/startup.inc index dd2e3e0240..d700b61172 100644 --- a/includes/startup.inc +++ b/includes/startup.inc @@ -128,8 +128,8 @@ function find_wrapper_or_launcher_at_location($location) { /** * Determine whether current OS is a Windows variant. */ -function drush_is_windows() { - return strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'; +function drush_is_windows($os = PHP_OS) { + return strtoupper(substr($os, 0, 3)) === 'WIN'; } function drush_escapeshellarg($arg, $os = NULL, $raw = FALSE) {