mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15917] Special unapproved topics message
For forums that have no approved posts but also have topics awaiting approval, to avoid the inconsistency of saying 'no posts' alongside a positive post count. PHPBB3-15917
This commit is contained in:
parent
33afd3f350
commit
59a84a71be
2 changed files with 9 additions and 1 deletions
|
@ -780,6 +780,10 @@ $lang = array_merge($lang, array(
|
||||||
'TOPIC_REVIEW' => 'Topic review',
|
'TOPIC_REVIEW' => 'Topic review',
|
||||||
'TOPIC_TITLE' => 'Topic title',
|
'TOPIC_TITLE' => 'Topic title',
|
||||||
'TOPIC_UNAPPROVED' => 'This topic has not been approved.',
|
'TOPIC_UNAPPROVED' => 'This topic has not been approved.',
|
||||||
|
'TOPIC_UNAPPROVED_FORUM' => array(
|
||||||
|
1 => 'Topic awaiting approval',
|
||||||
|
2 => 'Topics awaiting approval',
|
||||||
|
),
|
||||||
'TOPIC_DELETED' => 'This topic has been deleted.',
|
'TOPIC_DELETED' => 'This topic has been deleted.',
|
||||||
'TOTAL_ATTACHMENTS' => 'Attachment(s)',
|
'TOTAL_ATTACHMENTS' => 'Attachment(s)',
|
||||||
'TOTAL_LOGS' => array(
|
'TOTAL_LOGS' => array(
|
||||||
|
|
|
@ -103,7 +103,11 @@
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<br />{forumrow.LAST_POST_TIME}
|
<br />{forumrow.LAST_POST_TIME}
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
{L_NO_POSTS}<br />
|
{% if forumrow.U_UNAPPROVED_TOPICS %}
|
||||||
|
{{ lang('TOPIC_UNAPPROVED_FORUM', forumrow.TOPICS) }}<br />
|
||||||
|
{% else %}
|
||||||
|
{{ lang('NO_POSTS') }}<br />
|
||||||
|
{% endif %}
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</span>
|
</span>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
Loading…
Add table
Reference in a new issue