| @@ 162-170 (lines=9) @@ | ||
| 159 | } |
|
| 160 | ||
| 161 | // Reject users with a crazy high edit count. |
|
| 162 | if ($user->hasTooManyEdits($projectData)) { |
|
| 163 | $this->addFlash('danger', ['too-many-edits', number_format($user->maxEdits())]); |
|
| 164 | return $this->redirectToRoute('topedits', [ |
|
| 165 | 'project' => $project, |
|
| 166 | 'namespace' => $namespace, |
|
| 167 | 'start' => $start, |
|
| 168 | 'end' => $end, |
|
| 169 | ]); |
|
| 170 | } |
|
| 171 | ||
| 172 | $editCount = $user->countEdits($projectData, $namespace, $start, $end); |
|
| 173 | ||
| @@ 137-144 (lines=8) @@ | ||
| 134 | } |
|
| 135 | ||
| 136 | // Reject users with a crazy high edit count. |
|
| 137 | if ($user->hasTooManyEdits($projectData)) { |
|
| 138 | $this->addFlash('danger', ['too-many-edits', number_format($user->maxEdits())]); |
|
| 139 | return $this->redirectToRoute('topedits', [ |
|
| 140 | 'project' => $project, |
|
| 141 | 'namespace' => $namespace, |
|
| 142 | 'article' => $article, |
|
| 143 | ]); |
|
| 144 | } |
|
| 145 | ||
| 146 | if ($article === '') { |
|
| 147 | return $this->namespaceTopEdits($request, $user, $projectData, $namespace); |
|