From 39b46f4626fac4ef6aebd20f8e1520360f86ee0c Mon Sep 17 00:00:00 2001 From: Visman Date: Tue, 28 Aug 2018 20:18:24 +0700 Subject: [PATCH] minor edits --- app/Models/Search/Prepare.php | 2 +- app/config/main.dist.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Search/Prepare.php b/app/Models/Search/Prepare.php index 609f440a..db34b63e 100644 --- a/app/Models/Search/Prepare.php +++ b/app/Models/Search/Prepare.php @@ -159,7 +159,7 @@ class Prepare extends Method if (! $count) { $error = 'There is no word for search: \'%s\''; - } else if ($keyword) { + } elseif ($keyword) { $error = 'Syntactic word at the end of the search query: \'%s\''; } elseif (! empty($stack)) { $error = 'The order of brackets is broken: \'%s\''; diff --git a/app/config/main.dist.php b/app/config/main.dist.php index 0ea7a78c..31915ca5 100644 --- a/app/config/main.dist.php +++ b/app/config/main.dist.php @@ -233,6 +233,7 @@ return [ 'PostManagerPreviousPost' => \ForkBB\Models\Post\PreviousPost::class, 'PostManagerView' => \ForkBB\Models\Post\View::class, 'PostManagerRebuildIndex' => \ForkBB\Models\Post\RebuildIndex::class, + 'PostManagerUserInfoFromIP' => \ForkBB\Models\Post\UserInfoFromIP::class, 'GroupModel' => \ForkBB\Models\Group\Model::class, 'GroupManager' => \ForkBB\Models\Group\Manager::class,