mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
404 when translation resource is missing
This commit is contained in:
parent
f95856f198
commit
ad4e25db21
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ class i18nActions extends Actions
|
|||
|
||||
$json = Transifex::getTranslationResourceFile($project, $resource, $language);
|
||||
|
||||
if (!$json) {
|
||||
return NavActions::execute404();
|
||||
}
|
||||
|
||||
Response::setHeader(Response::HEADER_CROSS_ORIGIN, "*");
|
||||
Response::enablePublicMutableCache(md5(json_encode($json)));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue