Skip to content

Commit

Permalink
! If PMs are disabled, why the heck would you show a PM info box at a…
Browse files Browse the repository at this point in the history
…ll..?! (InfoCenter.template.php)
  • Loading branch information
Nao committed Feb 20, 2017
1 parent 342308c commit 30f1c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/html/InfoCenter.template.php
Expand Up @@ -101,13 +101,13 @@ function template_info_center_personalmsg()
{
global $context, $txt, $settings;

if (we::$is_guest || !empty($settings['show_stats_index']))
if (we::$is_guest || !empty($settings['show_stats_index']) || empty($context['allow_pm']))
return;

echo '
<section class="ic">
<we:title>
', $context['allow_pm'] ? '<a href="<URL>?action=pm">' : '', '<img src="', ASSETS, '/message_sm.gif" alt="', $txt['personal_message'], '">', $context['allow_pm'] ? '</a>' : '', '
<a href="<URL>?action=pm"><img src="', ASSETS, '/message_sm.gif" alt="', $txt['personal_message'], '"></a>
', $txt['personal_messages'], '
</we:title>
<p class="pminfo">
Expand Down

0 comments on commit 30f1c99

Please sign in to comment.