|
@@ -76,10 +76,10 @@ discard block |
|
|
block discarded – undo |
|
76
|
76
|
$username = $request->query->get('username', $request->query->get('user')); |
|
77
|
77
|
|
|
78
|
78
|
if (($project || $queryProject) && $username) { |
|
79
|
|
- $routeParams = [ 'project'=>($project ?: $queryProject), 'username' => $username ]; |
|
|
79
|
+ $routeParams = ['project'=>($project ?: $queryProject), 'username' => $username]; |
|
80
|
80
|
return $this->redirectToRoute("EditCounterResult", $routeParams); |
|
81
|
81
|
} elseif (!$project && $queryProject) { |
|
82
|
|
- return $this->redirectToRoute("EditCounterProject", [ 'project'=>$queryProject ]); |
|
|
82
|
+ return $this->redirectToRoute("EditCounterProject", ['project'=>$queryProject]); |
|
83
|
83
|
} |
|
84
|
84
|
|
|
85
|
85
|
$project = ProjectRepository::getProject($queryProject, $this->container); |
|
@@ -109,7 +109,7 @@ discard block |
|
|
block discarded – undo |
|
109
|
109
|
$this->setUpEditCounter($project, $username); |
|
110
|
110
|
$isSubRequest = $this->container->get('request_stack')->getParentRequest() !== null; |
|
111
|
111
|
return $this->render('editCounter/result.html.twig', [ |
|
112
|
|
- 'xtTitle' => $this->user->getUsername() . ' - ' . $this->project->getTitle(), |
|
|
112
|
+ 'xtTitle' => $this->user->getUsername().' - '.$this->project->getTitle(), |
|
113
|
113
|
'xtPage' => 'ec', |
|
114
|
114
|
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'), |
|
115
|
115
|
'is_labs' => $this->project->getRepository()->isLabs(), |