mirror of
https://github.com/getgrav/grav.git
synced 2026-07-12 11:22:15 +02:00
Return resource even if not physically present
This commit is contained in:
committed by
Andy Miller
parent
dc8efded34
commit
a95b716aa7
@@ -248,7 +248,7 @@ class Cache extends Getters
|
||||
foreach ($remove_paths as $stream) {
|
||||
|
||||
// Convert stream to a real path
|
||||
$path = $locator->findResource($stream);
|
||||
$path = $locator->findResource($stream, true, true);
|
||||
// Make sure path exists before proceeding, otherwise we would wipe ROOT_DIR
|
||||
if (!$path)
|
||||
throw new \RuntimeException("Stream '{$stream}' not found", 500);
|
||||
|
||||
Reference in New Issue
Block a user