Ver Fonte

! This should fix the remaining bugs...

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom há 10 anos atrás
pai
commit
37d3958e7c
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 2 2
      Sources/ReportToMod.php
  2. 1 0
      Themes/default/languages/index.english.php

+ 2 - 2
Sources/ReportToMod.php

@@ -25,7 +25,7 @@ if (!defined('SMF'))
  */
 function ReportToModerator()
 {
-	global $txt, $topic, $context, $smcFunc;
+	global $txt, $topic, $context, $smcFunc, $scripturl;
 
 	$context['robot_no_index'] = true;
 
@@ -108,7 +108,7 @@ function ReportToModerator()
 
 	$context['comment_body'] = !isset($_POST['comment']) ? '' : trim($_POST['comment']);
 
-	$context['page_title'] = $context['report_type'] == 'msg' ? $txt['report_to_mod'] : strtr($txt['report_profile'], array($display_name));
+	$context['page_title'] = $context['report_type'] == 'msg' ? $txt['report_to_mod'] : sprintf($txt['report_profile'], $display_name);
 	$context['notice'] = $context['report_type'] == 'msg' ? $txt['report_to_mod_func'] : $txt['report_profile_func'];
 
 	// Show the inputs for the comment, etc.

+ 1 - 0
Themes/default/languages/index.english.php

@@ -613,6 +613,7 @@ $txt['you_likes_1'] = 'You and <a href="%1$s">1 other person</a> like this.';
 $txt['you_likes_n'] = 'You and <a href="%1$s">%2$s other people</a> like this.';
 
 $txt['report_to_mod'] = 'Report to moderator';
+$txt['report_profile'] = 'Report profile of %1$s';
 
 $txt['unread_topics_visit'] = 'Recent Unread Topics';
 $txt['unread_topics_visit_none'] = 'No unread topics found since your last visit.  <a href="' . $scripturl . '?action=unread;all">Click here to try all unread topics</a>.';