Selaa lähdekoodia

Missing token in profile

Signed-off-by: emanuele <[email protected]>
emanuele 12 vuotta sitten
vanhempi
commit
3b9c8eae2e
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      Themes/default/Profile.template.php

+ 2 - 1
Themes/default/Profile.template.php

@@ -1676,7 +1676,8 @@ function template_notification()
 					<hr class="hrcolor" />
 					<div>
 						<input id="notify_submit" type="submit" value="', $txt['notify_save'], '" class="button_submit" />
-						<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
+						<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />', !empty($context['token_check']) ? '
+						<input type="hidden" name="' . $context[$context['token_check'] . '_token_var'] . '" value="' . $context[$context['token_check'] . '_token'] . '" />' : '', '
 						<input type="hidden" name="u" value="', $context['id_member'], '" />
 						<input type="hidden" name="sa" value="', $context['menu_item_selected'], '" />
 					</div>