This PR can be summarized in the following changelog entry:
In https://github.com/Yoast/Yoast-SEO-for-TYPO3/pull/544 an error message was introduced when a content element has "All Language" as the language setting. This PR changes the behavior to use the default language instead, and only show the error when getting the language from the site configuration fails.
Relevant technical choices:
Use getDefaultLanguage of Site when sys_language_uid is -1.
Test instructions
This PR can be tested by following these steps:
Pull branch
Set a content element to "All languages"
Check if the internal linking suggestions are now based on the default language
Quality assurance
[X] I have tested this code to the best of my abilities
[ ] I have added unittests to verify the code works as intended
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
getDefaultLanguage
ofSite
whensys_language_uid
is-1
.Test instructions
This PR can be tested by following these steps:
Quality assurance
Fixes #554