diff --git a/module/ai/control.php b/module/ai/control.php index 586cdaf6e1..e587134881 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -487,7 +487,7 @@ class ai extends control $this->view->actions = $this->loadModel('action')->getList('prompt', $id); $this->view->dataPreview = $this->ai->generateDemoDataPrompt($prompt->module, $prompt->source); $this->view->users = $this->loadModel('user')->getPairs('noletter'); - $this->view->title = "{$this->lang->ai->prompts->common}#{$prompt->id} $prompt->name"; + $this->view->title = "{$this->lang->aiapp->zentaoAgent}#{$prompt->id} $prompt->name"; $this->display(); } diff --git a/module/ai/view/promptview.html.php b/module/ai/view/promptview.html.php index e36b67ae74..bb67d30815 100644 --- a/module/ai/view/promptview.html.php +++ b/module/ai/view/promptview.html.php @@ -9,7 +9,6 @@ * @link https://www.zentao.net */ ?> -app->tab = 'admin'; // Force tab to be `admin` so that feature menu will be printed correctly. ?>