protected function getTemplateVarsFromGame(ScavengerHuntGame $game)
 {
     wfProfileIn(__METHOD__);
     $vars = $game->getAll();
     $vars['gameId'] = $vars['id'];
     $vars['enabled'] = $vars['isEnabled'];
     foreach ($vars['articles'] as $k => $v) {
         $vars['articles'][$k] = $vars['articles'][$k]->getAll();
     }
     if (empty($vars['articles'])) {
         $vars['articles'][] = $game->newGameArticle()->getAll();
     }
     unset($vars['id']);
     unset($vars['isEnabled']);
     wfProfileOut(__METHOD__);
     return $vars;
 }