#331 Import.php could not be run in HTTP mode (when PHP running in CGI mode)

SVN:trunk[973]
This commit is contained in:
Romain Quetiez
2010-11-25 09:44:42 +00:00
parent c63d25e223
commit a60709a354

View File

@@ -45,8 +45,8 @@ class utils
public static function IsModeCLI()
{
global $argv;
if (isset($argv))
$sSAPIName = php_sapi_name();
if ($sSAPIName == 'cli')
{
return true;
}