Skip to content

Commit d70e823

Browse files
committed
No longer needed, since not logged
Signed-off-by: Shawn Bulen <bulens@pacbell.net>
1 parent cf17212 commit d70e823

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Languages/en_US/Who.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
$txt['who_no_online_spiders'] = 'There are currently no robots online.';
1919
$txt['who_no_online_guests'] = 'There are currently no guests online.';
2020
$txt['who_no_online_members'] = 'There are currently no members online.';
21-
$txt['who_guest_login'] = 'User has been taken to the login page.';
2221

2322
$txt['whospider_login'] = 'Viewing the login page.';
2423
$txt['whospider_register'] = 'Viewing the registration page.';

Sources/Actions/Who.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public static function determineActions(mixed $urls, string|bool $preferred_pref
523523

524524
if (isset($actions['error'])) {
525525
$error_message = Lang::getTxt(
526-
$actions['error'] == 'guest_login' ? 'who_guest_login' : $actions['error'],
526+
$actions['error'],
527527
(array) ($actions['error_params'] ?? []),
528528
file: 'Who+Errors',
529529
);

Sources/User.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,11 @@ public function kickIfGuest(?string $message = null, bool $log = true): void
15451545
return;
15461546
}
15471547

1548+
// Log what they were trying to do that didn't work.
1549+
if ($log) {
1550+
$this->logOnline(true);
1551+
}
1552+
15481553
// Just die.
15491554
if (isset($_REQUEST['xml'])) {
15501555
Utils::obExit(false);

0 commit comments

Comments
 (0)