Skip to content

Commit 2f5d3a0

Browse files
Merge pull request #9262 from Sesquipedalian/3.0/post2
[3.0] Minor fixes for SMF\Actions\Post2
2 parents 2de48a3 + 49f9c1f commit 2f5d3a0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/Actions/Post2.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ public function submit(): void
658658
}
659659

660660
// Log an act of moderation - modifying.
661-
if (!empty($moderationAction)) {
661+
if (!empty($this->moderation_action)) {
662662
Logging::logAction('modify', ['topic' => $this->existing_msg->id_topic, 'message' => $this->existing_msg->id, 'member' => $this->existing_msg->id_member, 'board' => $this->existing_msg->id_board]);
663663
}
664664

@@ -1031,13 +1031,13 @@ protected function prepareEdit(): void
10311031
User::$me->isAllowedTo('modify_replies');
10321032

10331033
// If you're modifying a reply, I say it better be logged...
1034-
$moderationAction = true;
1034+
$this->moderation_action = true;
10351035
} else {
10361036
User::$me->isAllowedTo('modify_any');
10371037

10381038
// Log it, assuming you're not modifying your own post.
10391039
if ($this->existing_msg->id_member != User::$me->id) {
1040-
$moderationAction = true;
1040+
$this->moderation_action = true;
10411041
}
10421042
}
10431043

@@ -1055,7 +1055,7 @@ protected function prepareEdit(): void
10551055
Utils::$context['poster_id'] = $this->existing_msg->id_member;
10561056

10571057
// Can they approve it?
1058-
$approve_checked = (!empty($REQUEST['approve']) ? true : false);
1058+
$approve_checked = (!empty($_REQUEST['approve']) ? true : false);
10591059
$this->becomes_approved = Config::$modSettings['postmod_active'] ? ($this->can_approve && !$this->existing_msg->approved ? $approve_checked : $this->existing_msg->approved > 0) : true;
10601060

10611061
if (!User::$me->allowedTo('moderate_forum') || !$this->authorIsGuest) {

0 commit comments

Comments
 (0)