From 8707d1f7f3247f4f61d22da158fe51867f4a2800 Mon Sep 17 00:00:00 2001 From: Kevin Van Ryckegem Date: Wed, 12 Jan 2022 21:43:46 +0100 Subject: [PATCH] Add $post global for compatibility with hide mod + (#321) * Add $post global for compatibility with hide mod + Hide mod + fetches the $post['pid'] to check whether the user has access to the hidden content. Without this global, hide mod + cannot verify access if hidden content appears as the top liked message in the user's profile. * Bump version to 3.4.3 --- upload/inc/plugins/thankyoulike.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/inc/plugins/thankyoulike.php b/upload/inc/plugins/thankyoulike.php index 5c78256..1b7b45e 100644 --- a/upload/inc/plugins/thankyoulike.php +++ b/upload/inc/plugins/thankyoulike.php @@ -91,7 +91,7 @@ function thankyoulike_info() "website" => "https://community.mybb.com/thread-169382.html", "author" => "MyBB Group with love <3", "authorsite" => "https://community.mybb.com/thread-169382.html", - "version" => "3.4.2", + "version" => "3.4.3", // Constructed by converting each digit of "version" above into two digits (zero-padded if necessary), // then concatenating them, then removing any leading zero to avoid the value being interpreted as octal. "version_code" => 30402, @@ -2602,7 +2602,7 @@ public function buildShowLink(MybbStuff_MyAlerts_Entity_Alert $alert) function thankyoulike_memprofile() { - global $db, $mybb, $lang, $memprofile, $templates, $tyl_memprofile, $tyl_profile_stats, $uid; + global $db, $mybb, $lang, $memprofile, $templates, $tyl_memprofile, $tyl_profile_stats, $uid, $post; $prefix = 'g33k_thankyoulike_'; $lang->load("thankyoulike");