瀏覽代碼

only enable appcache on the '/new' page

pull/10/head
Aaron Parecki 10 年前
父節點
當前提交
fd2f8e9bdc
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. +2
    -1
      controllers/controllers.php
  2. +1
    -1
      views/layout.php

+ 2
- 1
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);
}

+ 1
- 1
views/layout.php 查看文件

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" manifest="teacup.appcache">
<html lang="en"<?= property_exists($this, 'enable_appcache') ? ' manifest="teacup.appcache"' : '' ?>>
<head>
<title><?= $this->title ?></title>
<meta charset="utf-8">

載入中…
取消
儲存