|
@@ -2426,7 +2426,7 @@ function package_get_contents($filename)
|
|
|
if (!isset($package_cache))
|
|
|
{
|
|
|
// Windows doesn't seem to care about the memory_limit.
|
|
|
- if (!empty($modSettings['package_disable_cache']) || ini_set('memory_limit', '128M') !== false || strpos(strtolower(PHP_OS), 'win') !== false)
|
|
|
+ if (!empty($modSettings['package_disable_cache']) || ini_set('memory_limit', '128M') !== false || stripos(PHP_OS, 'win') !== false)
|
|
|
$package_cache = array();
|
|
|
else
|
|
|
$package_cache = false;
|
|
@@ -2455,7 +2455,7 @@ function package_put_contents($filename, $data, $testing = false)
|
|
|
if (!isset($package_cache))
|
|
|
{
|
|
|
// Try to increase the memory limit - we don't want to run out of ram!
|
|
|
- if (!empty($modSettings['package_disable_cache']) || ini_set('memory_limit', '128M') !== false || strpos(strtolower(PHP_OS), 'win') !== false)
|
|
|
+ if (!empty($modSettings['package_disable_cache']) || ini_set('memory_limit', '128M') !== false || stripos(PHP_OS, 'win') !== false)
|
|
|
$package_cache = array();
|
|
|
else
|
|
|
$package_cache = false;
|