mirror of
https://github.com/getgrav/grav.git
synced 2026-08-31 04:35:54 +02:00
Fail quietly if file doesn't exist
This commit is contained in:
@@ -976,7 +976,12 @@ class Assets
|
||||
$link = ROOT_DIR . $relative_path;
|
||||
}
|
||||
|
||||
$file = ($this->fetch_command instanceof Closure) ? $this->fetch_command->__invoke($link) : file_get_contents($link);
|
||||
$file = ($this->fetch_command instanceof Closure) ? @$this->fetch_command->__invoke($link) : @file_get_contents($link);
|
||||
|
||||
// No file found, skip it...
|
||||
if ($file === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Double check last character being
|
||||
if (!$css) {
|
||||
|
||||
Reference in New Issue
Block a user