From ab0c5f9bfabacbf737cec3fb5796ce66dd37d877 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 17 Dec 2016 16:00:26 -0800 Subject: show logged-in user on editor fixes #9 --- controllers/editor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'controllers/editor.php') 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); } }); -- cgit v1.2.3