mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
cache folder in webroot should just be called silverstripe-cache (merged from branches/2.2.0@45907, r45618)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46111 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a6c210d2e5
commit
1df5d2b641
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
function getTempFolder() {
|
function getTempFolder() {
|
||||||
$cachefolder = "silverstripe-cache" . str_replace(array("/",":", "\\"),"-", substr($_SERVER['SCRIPT_FILENAME'], 0, strlen($_SERVER['SCRIPT_FILENAME']) - strlen('/sapphire/main.php')));
|
$cachefolder = "silverstripe-cache" . str_replace(array("/",":", "\\"),"-", substr($_SERVER['SCRIPT_FILENAME'], 0, strlen($_SERVER['SCRIPT_FILENAME']) - strlen('/sapphire/main.php')));
|
||||||
$ssTmp = dirname(dirname($_SERVER['SCRIPT_FILENAME'])) . "/" . $cachefolder;
|
$ssTmp = dirname(dirname($_SERVER['SCRIPT_FILENAME'])) . "/silverstripe-cache";
|
||||||
if(@file_exists($ssTmp)) {
|
if(@file_exists($ssTmp)) {
|
||||||
return $ssTmp;
|
return $ssTmp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user