Skip to content

Commit

Permalink
passing $sag around coaltrane style(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlueHat committed Feb 12, 2012
1 parent c4a60bc commit f67c717
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/authenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function on_before($params)
{
$sag = new Sag('bigbluehat.ic.tl', '5984');
$sag->setDatabase('phlattr');
$params['sag'] = $sag;

if (empty($_SESSION['flattr_username']))
{
Expand All @@ -18,6 +19,8 @@ function on_before($params)

function on_get($params)
{
$sag = $params['sag'];

$vars = array(
'profile' => $params['client']->getParsed('/user'),
'things' => $params['client']->getParsed('/user/things'),
Expand Down

0 comments on commit f67c717

Please sign in to comment.