Skip to content

Commit

Permalink
Update FileCacheDashboard.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Jan 3, 2025
1 parent f2dabd8 commit a86cb57
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/FileCacheDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@ public function dashboard(): string {
return 'No projects';
}

try {
$this->filecache = $this->connect($this->projects[$this->current_project]);
$this->all_keys = $this->filecache->keys();
$projects = [];

$projects = [];

foreach ($this->projects as $id => $project) {
if (!isset($project['name'])) {
$projects[$id]['name'] = 'Project '.$id;
}
foreach ($this->projects as $id => $project) {
if (!isset($project['name'])) {
$projects[$id]['name'] = 'Project '.$id;
}
}

$select = Helpers::serverSelector($this->template, $projects, $this->current_project);
$this->template->addGlobal('servers', Helpers::serverSelector($this->template, $projects, $this->current_project));

try {
$this->filecache = $this->connect($this->projects[$this->current_project]);
$this->all_keys = $this->filecache->keys();

$this->template->addGlobal('side', $select.$this->panels());
$this->template->addGlobal('side', $this->panels());

if (isset($_GET['view'], $_GET['key'])) {
return $this->viewKey();
Expand Down

0 comments on commit a86cb57

Please sign in to comment.