Browse Source

Merge pull request #424 from Oldiesmann/release-2.1

Moderator groups weren't always showing on the board index (fixes #423)
Michael Eshom 11 years ago
parent
commit
43063c32ef

+ 2 - 2
Themes/default/BoardIndex.template.php

@@ -174,9 +174,9 @@ function template_main()
 						<p>', $board['description'] , '</p>';
 
 				// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
-				if (!empty($board['moderators']))
+				if (!empty($board['link_moderators']))
 					echo '
-						<p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
+						<p class="moderators">', count($board['link_moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
 
 				// Show some basic information about the number of posts, etc.
 					echo '

+ 2 - 2
Themes/default/MessageIndex.template.php

@@ -65,9 +65,9 @@ function template_main()
 						<p>', $board['description'] , '</p>';
 
 			// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
-			if (!empty($board['moderators']))
+			if (!empty($board['moderators']) || !empty($board['moderator_groups']))
 				echo '
-						<p class="moderators">', count($board['moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
+						<p class="moderators">', count($board['link_moderators']) === 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';
 
 			// Show some basic information about the number of posts, etc.
 			echo '