From f99fba7c50952ffdfd3d1d7e198fb68ae778699a Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 9 Mar 2023 14:12:13 +0800 Subject: [PATCH] * fix bug. --- module/editor/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/editor/control.php b/module/editor/control.php index 4186dee101..13d392ddd0 100644 --- a/module/editor/control.php +++ b/module/editor/control.php @@ -22,7 +22,7 @@ class editor extends control public function __construct($module = '', $method = '') { parent::__construct($module, $method); - if($this->app->getMethodName() != 'switch' and empty($this->config->global->editor)) $this->locate($this->createLink('dev', 'editor')); + if($this->app->getMethodName() != 'turnon' and empty($this->config->global->editor)) $this->locate($this->createLink('dev', 'editor')); } /**