File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1015,6 +1015,12 @@ public function onAfterRoute()
1015
1015
}
1016
1016
$ post_info ['comment_type ' ] = 'contact_form_joomla_breezing ' ;
1017
1017
}
1018
+ elseif ($ app ->input ->get ('option ' ) == 'com_virtuemart ' && $ app ->input ->get ('task ' ) == 'review ' )
1019
+ {
1020
+ $ sender_email = JFactory::getUser ()->email ;
1021
+ $ sender_nickname = JFactory::getUser ()->username ;
1022
+ $ message = isset ($ _POST ['comment ' ]) ? $ _POST ['comment ' ] : '' ;
1023
+ }
1018
1024
// Genertal test for any forms or form with custom fields
1019
1025
elseif ($ config ['general_contact_forms_test ' ] ||
1020
1026
$ config ['check_external ' ] ||
@@ -1035,11 +1041,11 @@ public function onAfterRoute()
1035
1041
$ message = array_merge (array ('subject ' => $ subject ), $ message );
1036
1042
$ message = implode ("\n" , $ message );
1037
1043
1038
- if (!isset ($ post_info ['comment_type ' ]))
1039
- $ post_info ['comment_type ' ] = 'feedback_general_contact_form ' ;
1040
1044
}
1041
1045
if (!$ this ->exceptionList () && (trim ($ sender_email ) !='' || $ config ['check_all_post ' ]) && !empty ($ _POST ) && empty ($ _FILES ))
1042
1046
{
1047
+ if (!isset ($ post_info ['comment_type ' ]))
1048
+ $ post_info ['comment_type ' ] = 'feedback_general_contact_form ' ;
1043
1049
$ ctResponse = self ::ctSendRequest (
1044
1050
'check_message ' , array (
1045
1051
'sender_nickname ' => $ sender_nickname ,
You can’t perform that action at this time.
0 commit comments