This commit is contained in:
flash 2024-06-11 22:56:04 +00:00
parent 011c32e202
commit 06c409d6e8

View file

@ -37,7 +37,8 @@ class HanyuuContext {
}
public function getWebAssetInfo(): ?object {
return json_decode(file_get_contents(HAU_DIR_ASSETS . '/current.json'));
$path = HAU_DIR_ASSETS . '/current.json';
return is_file($path) ? json_decode(file_get_contents($path)) : null;
}
public function getTemplating(): SasaeEnvironment {