From 0d55f5aa35d21b79c5d79f7214c4c9e05b1d2684 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 23 Mar 2014 22:10:43 -0400 Subject: Comment edit/remove actions --- core/helper.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core') diff --git a/core/helper.php b/core/helper.php index e4ad26f1..0eeec4cd 100644 --- a/core/helper.php +++ b/core/helper.php @@ -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; -- cgit v1.2.3