Comment edit/remove actions

This commit is contained in:
Frédéric Guillot
2014-03-23 22:10:43 -04:00
parent ab63ffafc5
commit 0d55f5aa35
14 changed files with 659 additions and 101 deletions

View File

@@ -2,6 +2,12 @@
namespace Helper;
function template($name, array $args = array())
{
$tpl = new \Core\Template;
return $tpl->load($name, $args);
}
function is_current_user($user_id)
{
return $_SESSION['user']['id'] == $user_id;