From 70271e3db43e619ed7bcd9b341ad7746451e8179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 25 Feb 2022 15:54:57 +0800 Subject: [PATCH] modify plugin name --- function.php | 3 --- kiri-engine/Context.php | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/function.php b/function.php index ef7eeb3a..80aa8a22 100644 --- a/function.php +++ b/function.php @@ -326,9 +326,6 @@ if (!function_exists('isUrl')) { if (!empty($query)) $path .= '?' . $query; if (!empty($fragment)) $path .= '#' . $fragment; - - unset($outPut); - return [$scheme == 'https', $host, $port, $path]; } diff --git a/kiri-engine/Context.php b/kiri-engine/Context.php index 84a80f35..df524598 100644 --- a/kiri-engine/Context.php +++ b/kiri-engine/Context.php @@ -134,9 +134,9 @@ class Context extends BaseContext return; } if (Coroutine::getCid() === -1) { - unset(static::$_contents[$id]); + static::$_contents[$id] = null; } else { - unset(Coroutine::getContext($coroutineId)[$id]); + Coroutine::getContext($coroutineId)[$id] = null; } }