Browse Source

minor edits

Visman 6 năm trước cách đây
mục cha
commit
39b46f4626
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      app/Models/Search/Prepare.php
  2. 1 0
      app/config/main.dist.php

+ 1 - 1
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\'';

+ 1 - 0
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,