mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix code style / php 5.3 compat
This commit is contained in:
parent
dac3c5ee16
commit
05a519ecc5
4
cache/Cache.php
vendored
4
cache/Cache.php
vendored
@ -192,10 +192,10 @@ class SS_Cache {
|
|||||||
$frontend, $backend[0], $frontendOptions, $backend[1]
|
$frontend, $backend[0], $frontendOptions, $backend[1]
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isset($frontendOptions['disable-segmentation']) && $frontendOptions['disable-segmentation']) {
|
if (!empty($frontendOptions['disable-segmentation'])) {
|
||||||
return $cache;
|
return $cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Injector::inst()->createWithArgs('CacheProxy', [$cache]);
|
return Injector::inst()->createWithArgs('CacheProxy', array($cache));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user