Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- default2.php 2007-03-14 16:58:58.000000000 +0100
- +++ default.php 2009-11-27 08:30:12.000000000 +0100
- @@ -10,9 +10,13 @@
- Additional Author: Michael Schieben - michael@twoantennas.com (Adaption to Vanilla 1.0)
- */
- -$Context->Dictionary["MenuOptions"] = "Menu Options";
- -$Context->Dictionary["HideWhosOnline"] = "Hide the \"Who's Online\" panel";
- -$Context->Dictionary["Phantom"] = "Hide my username from the \"Who's Online\" panel";
- +$Context->SetDefinition("MenuOptions", "Menu Options");
- +$Context->SetDefinition("HideWhosOnline", "Hide the \"Who's Online\" panel");
- +$Context->SetDefinition("Phantom", "Hide my username from the \"Who's Online\" panel");
- +$Context->SetDefinition("WhoIsOnline", "Who's Online");
- +$Context->SetDefinition("PhantomUsers", "phantom user");
- +$Context->SetDefinition("Guest", "guest");
- +$Context->SetDefinition("Multitude", "s");
- class WhosOnline {
- @@ -148,7 +152,7 @@
- if (in_array($Context->SelfUrl, array("account.php", "categories.php", "comments.php", "index.php", "post.php", "search.php", "settings.php"))
- && $Context->Session->UserID > 0 && !$Context->Session->User->Preference("HideWhosOnline")) {
- - $ListName = $Context->GetDefinition("Who's Online");
- + $ListName = $Context->GetDefinition("WhoIsOnline");
- $Panel->AddList($ListName);
- $online_list = $WhosOnline->GetWhosOnline();
- $guest_count = $WhosOnline->GetGuestCount();
- @@ -164,15 +168,15 @@
- }
- }
- if ($phantom_count > 0) {
- - $phantom_string = "$phantom_count phantom user";
- + $phantom_string = "$phantom_count " . $Context->GetDefinition("PhantomUsers");
- if ($phantom_count > 1)
- - $phantom_string .= "s";
- + $phantom_string .= $Context->GetDefinition("Multitude");
- $Panel->AddListItem($ListName,'','',$phantom_string);
- }
- if ($guest_count > 0) {
- - $guest_string = "$guest_count guest";
- + $guest_string = "$guest_count " . $Context->GetDefinition("Guest");
- if ($guest_count > 1)
- - $guest_string .= "s";
- + $guest_string .= $Context->GetDefinition("Multitude");
- $Panel->AddListItem($ListName,'','',$guest_string);
- }
- } else {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement