@@ -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