diff --git a/lib/yrewrite/yrewrite.php b/lib/yrewrite/yrewrite.php index 6bbfee7..2abbb91 100644 --- a/lib/yrewrite/yrewrite.php +++ b/lib/yrewrite/yrewrite.php @@ -219,7 +219,7 @@ public static function prepare() { if (rex::isFrontend() && 'get' === rex_request_method() && !rex_get('rex-api-call') && $articleId = rex_get('article_id', 'int')) { $params = $_GET; - $article = rex_article::get((int) $params['article_id'], (int) $params['clang']); + $article = rex_article::get((int) $params['article_id'], (int) $params['clang'] ?: rex_clang::getCurrentId()); if ($article instanceof rex_article) { unset($params['article_id']); unset($params['clang']);