mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-08 14:26:10 +01:00
Use cache/tmp fallback rather than just cache/
This commit is contained in:
@@ -1327,7 +1327,7 @@ class Admin
|
|||||||
try {
|
try {
|
||||||
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true);
|
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$tmp_dir = Grav::instance()['locator']->findResource('cache://', true, true);
|
$tmp_dir = Grav::instance()['locator']->findResource('cache://', true, true) . '/tmp';
|
||||||
}
|
}
|
||||||
return $tmp_dir;
|
return $tmp_dir;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user