From c2f1a1086e56c4edde60426ea5173d7f7600864a Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Fri, 20 Dec 2019 16:48:09 +0800 Subject: [PATCH] =?UTF-8?q?course.ini=E7=A7=BB=E5=8A=A8=E5=88=B0config?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Searchers/Course.php | 3 +-- app/Searchers/course.ini => config/xs.course.ini | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename app/Searchers/course.ini => config/xs.course.ini (100%) diff --git a/app/Searchers/Course.php b/app/Searchers/Course.php index ded8ff17..653980a9 100644 --- a/app/Searchers/Course.php +++ b/app/Searchers/Course.php @@ -12,7 +12,7 @@ class Course extends UserComponent public function __construct() { - $fileName = dirname(__FILE__) . '/course.ini'; + $fileName = config_path() . '/xs.course.ini'; $this->xs = new \XS($fileName); } @@ -83,7 +83,6 @@ class Course extends UserComponent */ private function setXSDocument($course) { - $data = [ 'id' => $course->id, 'title' => $course->title, diff --git a/app/Searchers/course.ini b/config/xs.course.ini similarity index 100% rename from app/Searchers/course.ini rename to config/xs.course.ini