summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
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;