Skip to content

Commit

Permalink
No really, load it from the db #57
Browse files Browse the repository at this point in the history
  • Loading branch information
Clidus committed Feb 18, 2016
1 parent a3e3e73 commit ca7ae8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ignition_application/controllers/games.php
Expand Up @@ -14,7 +14,7 @@ function view($GBID, $page = 1)

// lookup game
$this->load->model('Game');
$game = $this->Game->getGameByGBID($GBID, $userID, false);
$game = $this->Game->getGame($GBID, $userID);

if($game == null)
show_404();
Expand All @@ -25,7 +25,7 @@ function view($GBID, $page = 1)

// page variables
$this->load->model('Page');
$data = $this->Page->create($game->name, "Game");
$data = $this->Page->create($game->Name, "Game");
$data['game'] = $game;

// get event feed
Expand Down

0 comments on commit ca7ae8f

Please sign in to comment.