add Icon to Station pages
This commit is contained in:
parent
6e1d1ede2a
commit
060282e9c0
3 changed files with 34 additions and 3 deletions
|
|
@ -211,7 +211,10 @@
|
|||
{
|
||||
// Mark Station as solved
|
||||
if(!is_null($charactergroup)) {
|
||||
$this->Charactergroupsqueststations->setStationSolved($station['id'], $charactergroup['id']);
|
||||
$this->Charactergroupsqueststations->setStationSolved(
|
||||
$station['id'],
|
||||
$charactergroup['id']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -219,9 +222,15 @@
|
|||
$solved = false;
|
||||
$tried = false;
|
||||
if(!is_null($charactergroup)) {
|
||||
$tried = $this->Charactergroupsqueststations->hasCharactergroupTriedStation($station['id'], $charactergroup['id']);
|
||||
$tried = $this->Charactergroupsqueststations->hasCharactergroupTriedStation(
|
||||
$station['id'],
|
||||
$charactergroup['id']
|
||||
);
|
||||
if($tried) {
|
||||
$solved = $this->Charactergroupsqueststations->hasCharactergroupSolvedStation($station['id'], $charactergroup['id']);
|
||||
$solved = $this->Charactergroupsqueststations->hasCharactergroupSolvedStation(
|
||||
$station['id'],
|
||||
$charactergroup['id']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -239,6 +248,7 @@
|
|||
$this->set('station', $station);
|
||||
$this->set('task', $task);
|
||||
$this->set('groups', $groups);
|
||||
$this->set('stationgroup', $charactergroup);
|
||||
$this->set('solved', $solved);
|
||||
$this->set('tried', $tried);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue