fixing stupid if in lng - tool

This commit is contained in:
Florian Aders (EleRas)
2010-04-09 19:30:52 +00:00
parent 5c152a9754
commit 7c12ab82c5

View File

@@ -21,9 +21,7 @@ $baseLanguage = 'english.lng.php';
// Check if we're in the CLI
if(@php_sapi_name() != 'cli'
&& @php_sapi_name() != 'cgi'
&& @php_sapi_name() != 'cgi-fcgi')
if(@php_sapi_name() != 'cli')
{
die('This script will only work in the shell.');
}
@@ -183,4 +181,4 @@ function compare($array1, $array2)
return $result;
}
?>
?>