Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Removed currentUser method
Browse files Browse the repository at this point in the history
  • Loading branch information
markomarkovic committed Mar 29, 2013
1 parent fda6568 commit e845d44
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions View/Helper/PersonaHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,4 @@ public function meta() {
));
}

/**
* JavaScript variable denoting current user
* @return string JS variable
*/
public function currentUser($jsVarName) {
$user = $this->Session->read('Persona.identity.email');

return sprintf(
"var %s = %s;",
$jsVarName,
(strlen($user) > 0) ? "'{$user}'" : "null"
);
}

}

0 comments on commit e845d44

Please sign in to comment.