Explorar o código

Email test: under IIS it was not detecting Windows correctly, and the help message was therefore completely wrong.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1511 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=13) %!d(string=hai) anos
pai
achega
3ae0974b04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      setup/email.test.php

+ 1 - 1
setup/email.test.php

@@ -51,7 +51,7 @@ function CheckEmailSetting($oP)
 		$sPhpIniFile = 'php.ini';
 	}
 
-	$bIsWindows = (array_key_exists('WINDIR', $_SERVER));
+	$bIsWindows = (array_key_exists('WINDIR', $_SERVER) || array_key_exists('windir', $_SERVER));
 	if ($bIsWindows)
 	{	
 		$sSmtpServer = ini_get('SMTP');