From 5bf93e21e22c545834a67246fc4aa84601492aa7 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Thu, 4 Sep 2025 15:48:31 +0800 Subject: [PATCH] * [task#149199] modify the page title and highlight nav. --- module/ai/control.php | 2 +- module/ai/view/promptview.html.php | 1 - module/common/lang/menu.php | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) 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. ?>