summaryrefslogtreecommitdiff
path: root/controllers/editor.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-12-17 16:00:26 -0800
committerAaron Parecki <aaron@parecki.com>2016-12-17 16:00:26 -0800
commitab0c5f9bfabacbf737cec3fb5796ce66dd37d877 (patch)
treeed5393b79a4dd6cd66d639920d76c0ad75459628 /controllers/editor.php
parent0a662e33ee432e2583a934cb161a0a1e5b49b76f (diff)
show logged-in user on editor
fixes #9
Diffstat (limited to 'controllers/editor.php')
-rw-r--r--controllers/editor.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/controllers/editor.php b/controllers/editor.php
index c880a00..3818328 100644
--- a/controllers/editor.php
+++ b/controllers/editor.php
@@ -2,7 +2,9 @@
$app->get('/editor', function() use($app) {
if($user=require_login($app)) {
- $html = $app->render('editor.php');
+ $html = $app->render('editor.php', [
+ 'user' => $user
+ ]);
$app->response()->body($html);
}
});