Fix missing change themeUrl (#1431)

* Fix missing change themeUrl

* Use options themeUrl method
This commit is contained in:
沈唁
2022-05-13 00:26:10 +08:00
committed by GitHub
parent ac33000ad0
commit 7279d4832d
+2
View File
@@ -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)) {