From 624d27ee8236c472b21487746b364f238d4871d6 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Thu, 18 Apr 2019 16:29:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/plugins/petscms/Pets.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/plugins/petscms/Pets.php b/application/plugins/petscms/Pets.php index cc0939d83..569de0947 100644 --- a/application/plugins/petscms/Pets.php +++ b/application/plugins/petscms/Pets.php @@ -163,6 +163,12 @@ class Pets extends Controller $ret['data']['not_bind_desc'] = str_replace("\n", '
', $ret['data']['not_bind_desc']); } $this->assign('plugins_base_data', $ret['data']); + + // 浏览器标题 + if(!empty($data['title'])) + { + $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle($data['title'])); + } $this->assign('params', $params); return $this->fetch('../../../plugins/view/petscms/pets/detail');