| @@ 49-53 (lines=5) @@ | ||
| 46 | $projectQuery = $request->query->get('project', $project); |
|
| 47 | $username = $request->query->get('username', $request->query->get('user')); |
|
| 48 | ||
| 49 | if ($projectQuery != '' && $username != '') { |
|
| 50 | return $this->redirectToRoute('AdminScoreResult', [ 'project' => $projectQuery, 'username' => $username ]); |
|
| 51 | } elseif ($projectQuery != '' && $project === null) { |
|
| 52 | return $this->redirectToRoute('AdminScoreProject', [ 'project' => $projectQuery ]); |
|
| 53 | } |
|
| 54 | ||
| 55 | // Set default project so we can populate the namespace selector. |
|
| 56 | if ($projectQuery == '') { |
|
| @@ 49-53 (lines=5) @@ | ||
| 46 | $projectQuery = $request->query->get('project'); |
|
| 47 | $article = $request->query->get('article'); |
|
| 48 | ||
| 49 | if ($projectQuery != '' && $article != '') { |
|
| 50 | return $this->redirectToRoute('ArticleInfoResult', [ 'project'=>$projectQuery, 'article' => $article ]); |
|
| 51 | } elseif ($article != '') { |
|
| 52 | return $this->redirectToRoute('ArticleInfoProject', [ 'project'=>$projectQuery ]); |
|
| 53 | } |
|
| 54 | ||
| 55 | if ($projectQuery == '') { |
|
| 56 | $projectQuery = $this->container->getParameter('default_project'); |
|