Explorar el Código

! Squash remaining bugs

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom hace 11 años
padre
commit
bb448d05d2

+ 6 - 6
Sources/ModerationCenter.php

@@ -730,9 +730,9 @@ function ReportedPosts()
 				SELECT id_report, id_board, id_topic, id_msg
 				FROM {db_prefix}log_reported
 				WHERE id_report IN ({array_int:report_list})
-					AND ' . $user_inf['mod_cache']['bq'],
+					AND ' . $user_info['mod_cache']['bq'],
 				array(
-					'id_report' => $_GET['rid'],
+					'report_list' => $toClose,
 				)
 			);
 
@@ -999,16 +999,16 @@ function ReportedMembers()
 				FROM {db_prefix}log_reported
 				WHERE id_report IN ({array_int:report_list})',
 				array(
-					'id_report' => $_GET['rid'],
+					'report_list' => $toClose,
 				)
 			);
 
 			while ($reports = $smcFunc['db_fetch_assoc']($request))
 			{
 				$report_data = array(
-					'report' => $row['id_report'],
-					'member' => (string)$row['id_member'],
-					'membername' => $row['membername'],
+					'report' => $reports['id_report'],
+					'membername' => $reports['membername'],
+					'member' => (string)$reports['id_member'],
 				);
 
 				// Log that this report was closed

+ 1 - 8
Themes/default/ModerationCenter.template.php

@@ -944,7 +944,7 @@ function template_reported_members()
 	}
 
 	echo '
-	<form id="reported_posts" action="', $scripturl, '?action=moderate;area=memberreports', $context['view_closed'] ? ';sa=closed' : '', ';start=', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
+	<form id="reported_members" action="', $scripturl, '?action=moderate;area=memberreports', $context['view_closed'] ? ';sa=closed' : '', ';start=', $context['start'], '" method="post" accept-charset="', $context['character_set'], '">
 		<div class="cat_bar">
 			<h3 class="catbg">
 				', $context['view_closed'] ? $txt['mc_reportedp_closed'] : $txt['mc_reportedp_active'], '
@@ -1014,13 +1014,6 @@ function template_reported_members()
 				', !$context['view_closed'] ? '<input type="submit" name="close_selected" value="' . $txt['mc_reportedp_close_selected'] . '" class="button_submit">' : '', '
 			</div>
 		</div>
-		<br>';
-		
-	$alt = false;
-
-	template_show_list('memreport_actions_list');
-
-	echo '
 		<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '">
 	</form>';
 }

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

@@ -240,7 +240,7 @@ function template_summary()
 	{
 		echo '
 					<dt>', $txt['email'], ': </dt>
-					<dd><a href="mailto:', $context['email']['member'], '">', $context['member']['email'], '</a></dd>';
+					<dd><a href="mailto:', $context['member']['email'], '">', $context['member']['email'], '</a></dd>';
 	}
 
 	if (!empty($modSettings['titlesEnable']) && !empty($context['member']['title']))