mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Use RX_WINDOWS consistently
This commit is contained in:
parent
7ffb1c50fc
commit
b6fc630f4a
2 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ class CacheReset extends Base
|
||||||
// If possible, use system command to speed up recursive deletion
|
// If possible, use system command to speed up recursive deletion
|
||||||
if (function_exists('exec') && !preg_match('/(?<!_)exec/', ini_get('disable_functions')))
|
if (function_exists('exec') && !preg_match('/(?<!_)exec/', ini_get('disable_functions')))
|
||||||
{
|
{
|
||||||
if (strncasecmp(\PHP_OS, 'win', 3) == 0)
|
if (\RX_WINDOWS)
|
||||||
{
|
{
|
||||||
@exec('rmdir /S /Q ' . escapeshellarg($tmp_dir));
|
@exec('rmdir /S /Q ' . escapeshellarg($tmp_dir));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ class Cleanup extends Base
|
||||||
{
|
{
|
||||||
return $cache = true;
|
return $cache = true;
|
||||||
}
|
}
|
||||||
if (preg_match('/Win/i', \PHP_OS))
|
if (\RX_WINDOWS)
|
||||||
{
|
{
|
||||||
return $cache = false;
|
return $cache = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue