Closed Darknico closed 1 month ago
I fixed in my forum with this edit:
file: /Sources/LightPortal/Hooks/WhosOnline.php
Search:
if ($actions['action'] === 'forum') {
$result = Lang::getTxt('who_index', [
Config::$scripturl . '?action=forum',
Utils::$context['forum_name']
]);
}
Replace with:
if ($actions['action'] === 'forum') {
$result = sprintf(
Lang::$txt['who_index'],
Config::$scripturl . '?action=forum',
Utils::$context['forum_name']
);
}
Fix tested and work correctly :+1:
Describe the bug (Опишите баг) If an user is viewing the board index, the placeholder not work correctly
To Reproduce (Как воспроизвести, по шагам) Steps to reproduce the behavior:
Expected behavior (Ожидаемое поведение — что хотели получить вместо бага) The correct string, for example "Viewing the board index of My Forum"
Screenshots
Environment