Вообщем открываем файл
Код: Выделить всё
class phpbb_similar_topics
Код: Выделить всё
$user->add_lang('mods/pe');
Код: Выделить всё
// Grab icons
$icons = $cache->obtain_icons();
Код: Выделить всё
post_expire_remove();
Код: Выделить всё
$template->assign_block_vars('similar', array(
'TOPIC_AUTHOR_FULL' => get_username_string('full', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']),
Код: Выделить всё
switch($row['topic_expire_type'])
{
case 0:
$l_topic_expire_type = $user->lang['TOPIC_EXPIRE_DELETE'];
break;
case 1:
$l_topic_expire_type = ($row['topic_status'] == ITEM_LOCKED) ? $user->lang['TOPIC_EXPIRE_UNLOCK'] : $user->lang['TOPIC_EXPIRE_LOCK'];
break;
case 2:
$l_topic_expire_type = $user->lang['TOPIC_EXPIRE_MOVE'];
break;
case 3:
$l_topic_expire_type = ($row['topic_status'] == ITEM_LOCKED) ? $user->lang['TOPIC_EXPIRE_UNLOCK_AND_MOVE'] : $user->lang['TOPIC_EXPIRE_LOCK_AND_MOVE'];
break;
default:
$l_topic_expire_type = '';
break;
}
Код: Выделить всё
'TOPIC_EXPIRE' => ($row['topic_expire_time']) ? $user->format_date($row['topic_expire_time']) : 0,
'L_TOPIC_EXPIRE_TYPE' => $l_topic_expire_type,
Код: Выделить всё
<!-- IF similar.S_TOPIC_UNAPPROVED or similar.S_POSTS_UNAPPROVED -->
Код: Выделить всё
<!-- IF similar.TOPIC_EXPIRE --> <br /><strong>{L_TOPIC_WILL_EXPIRE} [{similar.L_TOPIC_EXPIRE_TYPE}]:</strong> {similar.TOPIC_EXPIRE}<!-- ENDIF -->