Browse Source

Update Userlist page.

Add an informational message when config->insensitive() == false.
Visman 3 năm trước cách đây
mục cha
commit
feaa8dd06a
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      app/Models/Pages/Userlist.php

+ 7 - 0
app/Models/Pages/Userlist.php

@@ -82,6 +82,13 @@ class Userlist extends Page
         }
         if (null !== $v->name) {
             $filters['username'] = ['LIKE', $v->name];
+
+            if (
+                \preg_match('%[\x80-\xFF]%', $v->name)
+                && ! $this->c->config->insensitive()
+            ) {
+                $this->fIswev = ['i', 'The search may be case sensitive'];
+            }
         }
 
         $order  = $v->sort ? [$v->sort => $v->dir] : [];