From 2cd00111f4cf76b9ac8acf3f11823f40e13049dd Mon Sep 17 00:00:00 2001 From: molong Date: Wed, 19 Jul 2017 16:48:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=A1=E6=9D=BF=E4=B8=AD?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/behavior/InitHook.php | 2 +- template/default/content/article/detail.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/common/behavior/InitHook.php b/application/common/behavior/InitHook.php index a7caed55..884febaf 100644 --- a/application/common/behavior/InitHook.php +++ b/application/common/behavior/InitHook.php @@ -60,7 +60,7 @@ class InitHook { $route["admin/" . $value . "/status"] = "admin/content/status?model_id=" . $key; $route[$value . "/index"] = "index/content/index?model=" . $value; $route[$value . "/list/:id"] = "index/content/lists?model=" . $value; - $route[$value . "/detail-"] = "index/content/detail?model_id=" . $key; + $route[$value . "/detail-"] = "index/content/detail?model=" . $value; $route["user/" . $value . "/index"] = "user/content/index?model_id=" . $key; $route["user/" . $value . "/add"] = "user/content/add?model_id=" . $key; $route["user/" . $value . "/edit"] = "user/content/edit?model_id=" . $key; diff --git a/template/default/content/article/detail.html b/template/default/content/article/detail.html index 43f7d70b..cd880694 100644 --- a/template/default/content/article/detail.html +++ b/template/default/content/article/detail.html @@ -21,12 +21,12 @@ {$info['content']} - {prev id="$info['id']" cate="$info['category_id']" model="$info['model_id']"} + {prev id="$info['id']" cate="$info['category_id']" model="article"} {/prev} - {next id="$info['id']" cate="$info['category_id']" model="$info['model_id']"} + {next id="$info['id']" cate="$info['category_id']" model="article"}