浏览代码

minor edits

Visman 6 年之前
父节点
当前提交
39b46f4626
共有 2 个文件被更改,包括 2 次插入1 次删除
  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,