Use cache/tmp fallback rather than just cache/

This commit is contained in:
Andy Miller
2016-09-08 08:56:48 -06:00
parent 1f097a7500
commit 5176e5b3ff

View File

@@ -1327,7 +1327,7 @@ class Admin
try {
$tmp_dir = Grav::instance()['locator']->findResource('tmp://', true, true);
} 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;
}