Skip to content

Commit

Permalink
Add $post global for compatibility with hide mod + (#321)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
KevinVR authored Jan 12, 2022
1 parent 39ea3e4 commit 8707d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/inc/plugins/thankyoulike.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 8707d1f

Please sign in to comment.