src/AppBundle/Controller/AdminStatsController.php 1 location
|
@@ 125-136 (lines=12) @@
|
| 122 |
|
} |
| 123 |
|
// Start by validating the dates. If the dates are invalid, we'll redirect |
| 124 |
|
// to the project only view. |
| 125 |
|
if (strtotime($start) === false || strtotime($end) === false) { |
| 126 |
|
// Make sure to add the flash notice first. |
| 127 |
|
$this->addFlash("notice", ["invalid_date"]); |
| 128 |
|
|
| 129 |
|
// Then redirect us! |
| 130 |
|
return $this->redirectToRoute( |
| 131 |
|
"AdminStatsResult", |
| 132 |
|
[ |
| 133 |
|
"project" => $project |
| 134 |
|
] |
| 135 |
|
); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
// Initialize variables - prevents variable undefined errors |
| 139 |
|
$adminIdArr = []; |
src/AppBundle/Controller/AutomatedEditsController.php 1 location
|
@@ 134-146 (lines=13) @@
|
| 131 |
|
|
| 132 |
|
// Validating the dates. If the dates are invalid, we'll redirect |
| 133 |
|
// to the project and username view. |
| 134 |
|
if (strtotime($start) === false || strtotime($end) === false) { |
| 135 |
|
// Make sure to add the flash notice first. |
| 136 |
|
$this->addFlash("notice", ["invalid_date"]); |
| 137 |
|
|
| 138 |
|
// Then redirect us! |
| 139 |
|
return $this->redirectToRoute( |
| 140 |
|
"autoeditsResult", |
| 141 |
|
[ |
| 142 |
|
"project" => $project, |
| 143 |
|
"username" => $username, |
| 144 |
|
] |
| 145 |
|
); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
// Now, load the semi-automated edit types. |
| 149 |
|
$AEBTypes = []; |