summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-23 22:10:43 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-23 22:10:43 -0400
commit0d55f5aa35d21b79c5d79f7214c4c9e05b1d2684 (patch)
tree3a70e8fbf58dcbe93df0597f70a1f0bb893e5f40 /core
parentab63ffafc565e75c73c27910abd465bebb09306e (diff)
Comment edit/remove actions
Diffstat (limited to 'core')
-rw-r--r--core/helper.php6
1 files changed, 6 insertions, 0 deletions
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;