1
0
mirror of https://gitee.com/zoujingli/ThinkAdmin.git synced 2025-04-24 02:16:14 +08:00

ComposerUpdate

This commit is contained in:
邹景立 2021-01-12 14:24:46 +08:00
parent 48a0dd564d
commit 268e7d5461
3 changed files with 20 additions and 14 deletions
vendor
composer
services.php
topthink/think-template/src

@ -709,17 +709,17 @@
},
{
"name": "topthink/think-template",
"version": "v2.0.7",
"version_normalized": "2.0.7.0",
"version": "v2.0.8",
"version_normalized": "2.0.8.0",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-template.git",
"reference": "e98bdbb4a4c94b442f17dfceba81e0134d4fbd19"
"reference": "abfc293f74f9ef5127b5c416310a01fe42e59368"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-template/zipball/e98bdbb4a4c94b442f17dfceba81e0134d4fbd19",
"reference": "e98bdbb4a4c94b442f17dfceba81e0134d4fbd19",
"url": "https://api.github.com/repos/top-think/think-template/zipball/abfc293f74f9ef5127b5c416310a01fe42e59368",
"reference": "abfc293f74f9ef5127b5c416310a01fe42e59368",
"shasum": "",
"mirrors": [
{
@ -732,7 +732,7 @@
"php": ">=7.1.0",
"psr/simple-cache": "^1.0"
},
"time": "2019-09-20T15:31:04+00:00",
"time": "2020-12-10T07:52:03+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -750,11 +750,7 @@
"email": "liu21st@gmail.com"
}
],
"description": "the php template engine",
"support": {
"issues": "https://github.com/top-think/think-template/issues",
"source": "https://github.com/top-think/think-template/tree/v2.0.7"
}
"description": "the php template engine"
},
{
"name": "topthink/think-view",

2
vendor/services.php vendored

@ -1,5 +1,5 @@
<?php
// This file is automatically generated at:2021-01-11 11:55:05
// This file is automatically generated at:2021-01-12 14:24:15
declare (strict_types = 1);
return array (
0 => 'think\\admin\\Library',

@ -245,7 +245,11 @@ class Template
// 页面缓存
ob_start();
ob_implicit_flush(0);
if (PHP_VERSION > 8.0) {
ob_implicit_flush(false);
} else {
ob_implicit_flush(0);
}
// 读取编译存储
$this->storage->read($cacheFile, $this->data);
@ -345,7 +349,13 @@ class Template
}
// 读取第一行
preg_match('/\/\*(.+?)\*\//', fgets($handle), $matches);
$line = fgets($handle);
if (false === $line) {
return false;
}
preg_match('/\/\*(.+?)\*\//', $line, $matches);
if (!isset($matches[1])) {
return false;