src/AppBundle/Controller/AdminStatsController.php 1 location
|
@@ 156-159 (lines=4) @@
|
| 153 |
|
// Load the database information for the tool |
| 154 |
|
$projectData = ProjectRepository::getProject($project, $this->container); |
| 155 |
|
|
| 156 |
|
if (!$projectData->exists()) { |
| 157 |
|
$this->addFlash("notice", ["invalid-project", $project]); |
| 158 |
|
return $this->redirectToRoute("adminstats"); |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
$dbName = $projectData->getDatabaseName(); |
| 162 |
|
$wikiName = $projectData->getDatabaseName(); |
src/AppBundle/Controller/AdminScoreController.php 1 location
|
@@ 81-84 (lines=4) @@
|
| 78 |
|
|
| 79 |
|
$projectData = ProjectRepository::getProject($project, $this->container); |
| 80 |
|
|
| 81 |
|
if (!$projectData->exists()) { |
| 82 |
|
$this->addFlash("notice", ["invalid-project", $project]); |
| 83 |
|
return $this->redirectToRoute("adminscore"); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
$dbName = $projectData->getDatabaseName(); |
| 87 |
|
$wikiName = $projectData->getDatabaseName(); |
src/AppBundle/Controller/AutomatedEditsController.php 1 location
|
@@ 125-128 (lines=4) @@
|
| 122 |
|
// Pull information about the project |
| 123 |
|
$projectData = ProjectRepository::getProject($project, $this->container); |
| 124 |
|
|
| 125 |
|
if (!$projectData->exists()) { |
| 126 |
|
$this->addFlash('notice', ['invalid-project', $project]); |
| 127 |
|
return $this->redirectToRoute('autoedits'); |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
$dbName = $projectData->getDatabaseName(); |
| 131 |
|
$projectUrl = $projectData->getUrl(); |
src/AppBundle/Controller/PagesController.php 1 location
|
@@ 118-121 (lines=4) @@
|
| 115 |
|
$projectData = ProjectRepository::getProject($project, $this->container); |
| 116 |
|
|
| 117 |
|
// If the project exists, actually populate the values |
| 118 |
|
if (!$projectData->exists()) { |
| 119 |
|
$this->addFlash("notice", ["invalid-project", $project]); |
| 120 |
|
return $this->redirectToRoute("pages"); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
$dbName = $projectData->getDatabaseName(); |
| 124 |
|
$projectUrl = $projectData->getUrl(); |
src/AppBundle/Controller/TopEditsController.php 1 location
|
@@ 105-108 (lines=4) @@
|
| 102 |
|
|
| 103 |
|
$projectData = ProjectRepository::getProject($project, $this->container); |
| 104 |
|
|
| 105 |
|
if (!$projectData->exists()) { |
| 106 |
|
$this->addFlash("notice", ["invalid-project", $project]); |
| 107 |
|
return $this->redirectToRoute("topedits"); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
$user = UserRepository::getUser($username, $this->container); |
| 111 |
|
|
src/AppBundle/Controller/ArticleInfoController.php 1 location
|
@@ 109-112 (lines=4) @@
|
| 106 |
|
{ |
| 107 |
|
$projectQuery = $request->attributes->get('project'); |
| 108 |
|
$project = ProjectRepository::getProject($projectQuery, $this->container); |
| 109 |
|
if (!$project->exists()) { |
| 110 |
|
$this->addFlash('notice', ['invalid-project', $projectQuery]); |
| 111 |
|
return $this->redirectToRoute('articleInfo'); |
| 112 |
|
} |
| 113 |
|
$projectUrl = $project->getUrl(); |
| 114 |
|
$dbName = $project->getDatabaseName(); |
| 115 |
|
|