mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
medal add priority
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
require "../include/bittorrent.php";
|
||||
dbconn();
|
||||
loggedinorreturn();
|
||||
$query = \App\Models\Medal::query()->where('display_on_medal_page', 1);
|
||||
$query = \App\Models\Medal::query()->where('display_on_medal_page', 1)
|
||||
->orderBy('priority', 'desc')->orderBy("id", 'desc');
|
||||
$q = htmlspecialchars($_REQUEST['q'] ?? '');
|
||||
if (!empty($q)) {
|
||||
$query->where('username', 'name', "%{$q}%");
|
||||
|
||||
Reference in New Issue
Block a user