From fd2f8e9bdc7d17e29c71fe920c40da5712f71653 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 9 May 2015 22:29:38 +0200 Subject: [PATCH] only enable appcache on the '/new' page --- controllers/controllers.php | 3 ++- views/layout.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/controllers.php b/controllers/controllers.php index b898539..b67d147 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -58,7 +58,8 @@ $app->get('/new', function() use($app) { 'access_token' => $user->access_token, 'response_date' => $user->last_micropub_response_date, 'location_enabled' => $user->location_enabled, - 'default_options' => get_entry_options($user->id) + 'default_options' => get_entry_options($user->id), + 'enable_appcache' => true )); $app->response()->body($html); } diff --git a/views/layout.php b/views/layout.php index 8c5162a..2b6e555 100644 --- a/views/layout.php +++ b/views/layout.php @@ -1,5 +1,5 @@ - +> <?= $this->title ?>