Explorar o código

the redirec should be inside the saving if :P
and a typo on the template name

Signed-off-by: Suki <[email protected]>

Suki %!s(int64=11) %!d(string=hai) anos
pai
achega
397df9529c
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 2 2
      Sources/ReportedPosts.php
  2. 1 1
      Themes/default/ReportedPosts.template.php

+ 2 - 2
Sources/ReportedPosts.php

@@ -336,8 +336,8 @@ function EditComment()
 		$edited_comment = trim($smcFunc['htmlspecialchars']($_POST['mod_comment']));
 
 		editModComment($context['comment_id'], $edited_comment);
-	}
 
-	redirectexit($scripturl . '?action=moderate;area=reports;sa=details;rid=' . $context['report_id']);
+		redirectexit($scripturl . '?action=moderate;area=reports;sa=details;rid=' . $context['report_id']);
+	}
 }
 ?>

+ 1 - 1
Themes/default/ReportedPosts.template.php

@@ -261,7 +261,7 @@ function template_viewmodreport()
 	</div>';
 }
 
-function template_editcomment()
+function template_edit_comment()
 {
 	global $context, $scripturl, $txt;