fix issues + tag sort

This commit is contained in:
xiaomlove
2025-05-12 16:46:01 +07:00
parent 8b2c6cea2f
commit cc9d0969cc
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class TagRepository extends BaseRepository
public static function createBasicQuery() public static function createBasicQuery()
{ {
return Tag::query()->orderBy('priority', 'asc')->orderBy('id', 'asc'); return Tag::query()->orderBy('priority', 'desc')->orderBy('id', 'desc');
} }
public function renderCheckbox(int $searchBoxId, array $checked = [], $ignorePermission = false): string public function renderCheckbox(int $searchBoxId, array $checked = [], $ignorePermission = false): string
+1 -1
View File
@@ -265,7 +265,7 @@ HEAD;
} }
public function renderOnUploadPage($torrentId = 0, $searchBoxId) public function renderOnUploadPage($torrentId, $searchBoxId)
{ {
$searchBox = NexusDB::getOne('searchbox', "id = $searchBoxId"); $searchBox = NexusDB::getOne('searchbox', "id = $searchBoxId");
if (empty($searchBox)) { if (empty($searchBox)) {
+1 -1
View File
@@ -177,7 +177,7 @@ class Imdb
$temp .= $ak["title"].$ak["year"]. ($ak["country"] != "" ? " (".$ak["country"].")" : "") . ($ak["comment"] != "" ? " (" . $ak["comment"] . ")" : "") . ", "; $temp .= $ak["title"].$ak["year"]. ($ak["country"] != "" ? " (".$ak["country"].")" : "") . ($ak["comment"] != "" ? " (" . $ak["comment"] . ")" : "") . ", ";
} }
$autodata .= rtrim(trim($temp), ","); $autodata .= rtrim(trim($temp), ",");
$runtimes = str_replace(" min",$lang_details['text_mins'], $movie->runtime()); $runtimes = str_replace(" min",$lang_details['text_mins'], $movie->runtime() ?? '');
$autodata .= "<br />\n<strong><font color=\"DarkRed\">".$lang_details['text_year']."</font></strong>" . "".$movie->year ()."<br />\n"; $autodata .= "<br />\n<strong><font color=\"DarkRed\">".$lang_details['text_year']."</font></strong>" . "".$movie->year ()."<br />\n";
$autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_runtime']."</font></strong>".$runtimes."<br />\n"; $autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_runtime']."</font></strong>".$runtimes."<br />\n";
$autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_votes']."</font></strong>" . "".$movie->votes ()."<br />\n"; $autodata .= "<strong><font color=\"DarkRed\">".$lang_details['text_votes']."</font></strong>" . "".$movie->votes ()."<br />\n";
+1 -1
View File
@@ -14,7 +14,7 @@ $claimRep = new \App\Repositories\ClaimRepository();
$seedBoxRep = new \App\Repositories\SeedBoxRepository(); $seedBoxRep = new \App\Repositories\SeedBoxRepository();
$claimTorrentTTL = \App\Models\Claim::getConfigTorrentTTL(); $claimTorrentTTL = \App\Models\Claim::getConfigTorrentTTL();
$id = intval($_GET['userid'] ?? 0); $id = intval($_GET['userid'] ?? 0);
$type = $_GET['type']; $type = $_GET['type'] ?? '';
if (!in_array($type,array('uploaded','seeding','leeching','completed','incomplete'))) if (!in_array($type,array('uploaded','seeding','leeching','completed','incomplete')))
die; die;
if(!user_can('torrenthistory') && $id != $CURUSER["id"]) if(!user_can('torrenthistory') && $id != $CURUSER["id"])
+1 -1
View File
@@ -289,7 +289,7 @@ stdfoot();
} }
if ($action == "moveordel") if ($action == "moveordel")
{ {
$pm_id = (int) $_POST['id']; $pm_id = (int) $_POST['id'] ?? 0;
$pm_box = (int) $_POST['box']; $pm_box = (int) $_POST['box'];
$pm_messages = $_POST['messages']; $pm_messages = $_POST['messages'];
if ($_POST['markread']) if ($_POST['markread'])
+1 -1
View File
@@ -581,7 +581,7 @@ if ($action == "exchange") {
$userid = $CURUSER['id']; $userid = $CURUSER['id'];
$art = $bonusarray['art']; $art = $bonusarray['art'];
$bonuscomment = $CURUSER['bonuscomment']; // $bonuscomment = $CURUSER['bonuscomment'];
$seedbonus=$CURUSER['seedbonus']-$points; $seedbonus=$CURUSER['seedbonus']-$points;
if($CURUSER['seedbonus'] >= $points) { if($CURUSER['seedbonus'] >= $points) {