Browse Source

! minor updates to make the action list a bit less spooky by further limiting the Nothing, or nothing you can see message.

Spuds 12 years ago
parent
commit
09a7907b5c
2 changed files with 9 additions and 1 deletions
  1. 6 1
      Sources/Who.php
  2. 3 0
      Themes/default/languages/Who.english.php

+ 6 - 1
Sources/Who.php

@@ -413,10 +413,15 @@ function determineActions($urls, $preferred_prefix = false)
 			{
 				if (allowedTo($allowedActions[$actions['action']]))
 					$data[$k] = $txt['whoallow_' . $actions['action']];
+				elseif (in_array('moderate_forum', $allowedActions[$actions['action']]))
+					$data[$k] = $txt['who_moderate'];
+				elseif (in_array('admin_forum', $allowedActions[$actions['action']]))
+					$data[$k] = $txt['who_admin'];
 				else
 					$data[$k] = $txt['who_hidden'];
 			}
-			// Unlisted or unknown action.
+			elseif (!empty($actions['action']))
+				$data[$k] = $txt['who_generic'] . ' ' . $actions['action'];
 			else
 				$data[$k] = $txt['who_unknown'];
 		}

+ 3 - 0
Themes/default/languages/Who.english.php

@@ -4,6 +4,9 @@
 global $scripturl, $context;
 
 $txt['who_hidden'] = '<em>Nothing, or nothing you can see...</em>';
+$txt['who_admin'] = 'Viewing the admin portal';
+$txt['who_moderate'] = 'Viewing the moderator portal';
+$txt['who_generic'] = 'Viewing the';
 $txt['who_unknown'] = '<em>Unknown Action</em>';
 $txt['who_user'] = 'User';
 $txt['who_time'] = 'Time';