Skip to content

Commit

Permalink
Fixed argument order in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jun 24, 2020
1 parent 10b1b3e commit 815e1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-bundle/src/Routing/Content/ArticleUrlResolver.php
Expand Up @@ -28,7 +28,7 @@ public function resolveContent($article): Route
$page = $article->getRelated('pid');

if (!$page instanceof PageModel) {
throw new RouteNotFoundException(sprintf('Page ID %s for article ID %s not found', $article->id, $article->pid));
throw new RouteNotFoundException(sprintf('Page ID %s for article ID %s not found', $article->pid, $article->id));
}

return ContentRoute::createWithParameters($page, '/articles/'.($article->alias ?: $article->id), $article);
Expand Down

0 comments on commit 815e1c0

Please sign in to comment.