From df10de86d2615868ddaea18bfd293bc63e028c72 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Thu, 15 Sep 2022 01:13:14 +0800 Subject: [PATCH] change sticky promotion position --- nexus/Field/Field.php | 3 ++- public/details.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nexus/Field/Field.php b/nexus/Field/Field.php index b44f69b5..a467dc3b 100644 --- a/nexus/Field/Field.php +++ b/nexus/Field/Field.php @@ -426,8 +426,9 @@ JS; $rowByRowHtml .= tr($field['label'], $contentFormatted, 1); } } + $result = $rowByRowHtml; - if ($shouldRenderMixRow) { + if ($shouldRenderMixRow && $mixedRowContent) { $result .= tr($displayName, format_comment($mixedRowContent), 1); } return $result; diff --git a/public/details.php b/public/details.php index 74831a1d..d3914460 100644 --- a/public/details.php +++ b/public/details.php @@ -267,6 +267,9 @@ JS; print("\n"); // ---------------- end subtitle block -------------------// + //hook before desc + do_action('torrent_detail_before_desc', $row['id'], $CURUSER['id']); + /**************start custom fields****************/ echo $customField->renderOnTorrentDetailsPage($id);