Oops #2
This commit is contained in:
parent
011c32e202
commit
06c409d6e8
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ class HanyuuContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getWebAssetInfo(): ?object {
|
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 {
|
public function getTemplating(): SasaeEnvironment {
|
||||||
|
|
Reference in a new issue