the language items for those error-messages use template-scripting (`{if LANGUAGE_USE_INFORMAL_VARIANT}deinem{else}Ihrem{/if}`) which is not supported by `Language::get()`, but `Language::getDynamicVariable()`
if ($user->userID) {
// a user is already connected, but we are logged in, break
if (WCF::getUser()->userID) {
- throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.facebook.connect.error.inuse'));
+ throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.facebook.connect.error.inuse'));
}
// perform login
else {
if ($user->userID) {
// a user is already connected, but we are logged in, break
if (WCF::getUser()->userID) {
- throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.github.connect.error.inuse'));
+ throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.github.connect.error.inuse'));
}
// perform login
else {
if ($user->userID) {
// a user is already connected, but we are logged in, break
if (WCF::getUser()->userID) {
- throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.google.connect.error.inuse'));
+ throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.google.connect.error.inuse'));
}
// perform login
else {
if ($user->userID) {
// a user is already connected, but we are logged in, break
if (WCF::getUser()->userID) {
- throw new NamedUserException(WCF::getLanguage()->get('wcf.user.3rdparty.twitter.connect.error.inuse'));
+ throw new NamedUserException(WCF::getLanguage()->getDynamicVariable('wcf.user.3rdparty.twitter.connect.error.inuse'));
}
// perform login
else {