From 7279d4832d0646533640ba957010d0f4b3fe895d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Fri, 13 May 2022 00:26:10 +0800 Subject: [PATCH] Fix missing change themeUrl (#1431) * Fix missing change themeUrl * Use options themeUrl method --- var/Widget/Themes/Edit.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/Widget/Themes/Edit.php b/var/Widget/Themes/Edit.php index 5b1cb1a4..a41b62b9 100644 --- a/var/Widget/Themes/Edit.php +++ b/var/Widget/Themes/Edit.php @@ -46,6 +46,8 @@ class Edit extends Options implements ActionInterface $this->update(['value' => 'recent'], $this->db->sql()->where('name = ?', 'frontPage')); } + $this->options->themeUrl = rtrim($this->options->themeUrl('', $theme), '/'); + $configFile = $this->options->themeFile($theme, 'functions.php'); if (file_exists($configFile)) {