update Quest page: show everything on one page

This commit is contained in:
coderkun 2014-04-24 18:06:57 +02:00
commit b98b22734e
10 changed files with 111 additions and 144 deletions

View file

@ -181,7 +181,7 @@
$maxY = 0;
foreach($words as $index => &$word)
{
if($this->request->getGetParam('show-answer') == 'true' || !$this->Quests->hasCharacterSolvedQuest($quest['id'], $character['id'])) {
if($this->request->getGetParam('show-answer') == 'true' || !$this->Quests->hasCharacterSolvedQuest($quest['id'], $character['id']) || $this->request->getGetParam('status') == 'solved') {
$word['answer'] = $this->Crossword->getCharacterSubmission($word['id'], $character['id']);
}
// Insert word