From 66c8d5ca26205beded902bd714208ac5894235c9 Mon Sep 17 00:00:00 2001 From: Semenov Date: Thu, 21 Apr 2016 02:29:59 +0300 Subject: [PATCH] Removed skeeks/cms/base/Module --- CmsSearchComponent.php | 1 + models/CmsSearchPhrase.php | 2 +- views/result/index.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CmsSearchComponent.php b/CmsSearchComponent.php index d6b8fd0..ea47138 100644 --- a/CmsSearchComponent.php +++ b/CmsSearchComponent.php @@ -9,6 +9,7 @@ use skeeks\cms\assets\CmsToolbarAsset; use skeeks\cms\assets\CmsToolbarAssets; use skeeks\cms\assets\CmsToolbarFancyboxAsset; +use skeeks\cms\components\Cms; use skeeks\cms\helpers\UrlHelper; use skeeks\cms\models\CmsContent; use skeeks\cms\models\CmsContentElement; diff --git a/models/CmsSearchPhrase.php b/models/CmsSearchPhrase.php index 719bb26..38062fe 100644 --- a/models/CmsSearchPhrase.php +++ b/models/CmsSearchPhrase.php @@ -96,7 +96,7 @@ public function rules() return null; }], - ['ip', 'default', 'value' => \skeeks\cms\helpers\Request::getRealUserIp()], + ['ip', 'default', 'value' => \Yii::$app->request->userIP], ]); } diff --git a/views/result/index.php b/views/result/index.php index eb4f8fb..1c8a734 100644 --- a/views/result/index.php +++ b/views/result/index.php @@ -32,7 +32,7 @@ 'ContentElementsCmsWidget-search-result', - 'viewFile' => '@skeeks/cms/views/search/_widget', + 'viewFile' => '@skeeks/cms/search/views/result/_widget', 'enabledCurrentTree' => \skeeks\cms\components\Cms::BOOL_N, 'dataProviderCallback' => function(\yii\data\ActiveDataProvider $dataProvider) {