fixing stupid if in lng - tool
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user