Browse Source

! Back to notification stuff. So with the changes to the menus etc, we don't use the old tests for whether to show reports and whatnot so we might as well begin phasing them out.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 years ago
parent
commit
18f30e55f6

+ 0 - 1
Sources/ModerationCenter.php

@@ -2183,7 +2183,6 @@ function ModerationSettings()
 
 	// What blocks does the user currently have selected?
 	$context['mod_settings'] = array(
-		'show_reports' => $show_reports,
 		'notify_report' => $pref_binary & 2 ? 1 : ($pref_binary & 1 ? 2 : 0),
 		'notify_approval' => $pref_binary & 4,
 		'user_blocks' => str_split($mod_blocks),

+ 0 - 2
Sources/Subs.php

@@ -2887,8 +2887,6 @@ function setupThemeContext($forceload = false)
 		if (allowedTo('moderate_forum'))
 			$context['unapproved_members'] = (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 2) || !empty($modSettings['approveAccountDeletion']) ? $modSettings['unapprovedMembers'] : 0;
 
-		$context['show_open_reports'] = empty($user_settings['mod_prefs']) || $user_settings['mod_prefs'][0] == 1;
-
 		$context['user']['avatar'] = array();
 
 		// Figure out the avatar... uploaded?

+ 0 - 6
Themes/default/ModerationCenter.template.php

@@ -520,12 +520,6 @@ function template_moderation_settings()
 	if ($context['can_moderate_boards'])
 	{
 		echo '
-						<dt>
-							<strong><label for="mod_show_reports">', $txt['mc_prefs_show_reports'], '</label>:</strong>
-						</dt>
-						<dd>
-							<input type="checkbox" id="mod_show_reports" name="mod_show_reports" ', $context['mod_settings']['show_reports'] ? 'checked="checked"' : '', ' class="input_check" />
-						</dd>
 						<dt>
 							<strong><label for="mod_notify_report">', $txt['mc_prefs_notify_report'], '</label>:</strong>
 						</dt>

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

@@ -142,7 +142,6 @@ $txt['mc_prefs_title'] = 'Moderation Preferences';
 $txt['mc_prefs_desc'] = 'This section allows you to set some personal preferences for moderation related activities such as email notifications.';
 $txt['mc_prefs_homepage'] = 'Items to show on moderation homepage';
 $txt['mc_prefs_latest_news'] = 'SM News';
-$txt['mc_prefs_show_reports'] = 'Show open report count in forum header';
 $txt['mc_prefs_notify_report'] = 'Notify of topic reports';
 $txt['mc_prefs_notify_report_never'] = 'Never';
 $txt['mc_prefs_notify_report_moderator'] = 'Only if it\'s a board I moderate';