|
@@ -171,8 +171,8 @@ function MessageMain()
|
|
$context['currently_using_labels'] = count($context['labels']) > 1 ? 1 : 0;
|
|
$context['currently_using_labels'] = count($context['labels']) > 1 ? 1 : 0;
|
|
|
|
|
|
// Some stuff for the labels...
|
|
// Some stuff for the labels...
|
|
- $context['current_label_id'] = isset($_REQUEST['l']) && isset($context['labels'][(int) $_REQUEST['l']]) ? (int) $_REQUEST['l'] : -1;
|
|
|
|
- $context['current_label'] = &$context['labels'][(int) $context['current_label_id']]['name'];
|
|
|
|
|
|
+ $context['current_label_id'] = isset($_REQUEST['l']) && isset($context['labels'][$_REQUEST['l']]) ? (int) $_REQUEST['l'] : -1;
|
|
|
|
+ $context['current_label'] = &$context['labels'][$context['current_label_id']]['name'];
|
|
$context['folder'] = !isset($_REQUEST['f']) || $_REQUEST['f'] != 'sent' ? 'inbox' : 'sent';
|
|
$context['folder'] = !isset($_REQUEST['f']) || $_REQUEST['f'] != 'sent' ? 'inbox' : 'sent';
|
|
|
|
|
|
// This is convenient. Do you know how annoying it is to do this every time?!
|
|
// This is convenient. Do you know how annoying it is to do this every time?!
|
|
@@ -310,7 +310,7 @@ function messageIndexBar($area)
|
|
|
|
|
|
// Add the label to the menu.
|
|
// Add the label to the menu.
|
|
$pm_areas['labels']['areas']['label' . $label['id']] = array(
|
|
$pm_areas['labels']['areas']['label' . $label['id']] = array(
|
|
- 'label' => $label['name'] . (!empty($label['unread_messages']) ? ' (<strong>' . $label['unread_messages'] . '</strong>)' : ''),
|
|
|
|
|
|
+ 'label' => $label['name'] . (!empty($label['unread_messages']) ? ' <span class="amt">' . $label['unread_messages'] . '</span>' : ''),
|
|
'custom_url' => $scripturl . '?action=pm;l=' . $label['id'],
|
|
'custom_url' => $scripturl . '?action=pm;l=' . $label['id'],
|
|
'unread_messages' => $label['unread_messages'],
|
|
'unread_messages' => $label['unread_messages'],
|
|
'messages' => $label['messages'],
|
|
'messages' => $label['messages'],
|
|
@@ -318,7 +318,7 @@ function messageIndexBar($area)
|
|
}
|
|
}
|
|
|
|
|
|
if (!empty($unread_in_labels))
|
|
if (!empty($unread_in_labels))
|
|
- $pm_areas['labels']['title'] .= ' (' . $unread_in_labels . ')';
|
|
|
|
|
|
+ $pm_areas['labels']['title'] .= ' <span class="amt">' . $unread_in_labels . '</span>';
|
|
}
|
|
}
|
|
|
|
|
|
$pm_areas['folders']['areas']['inbox']['unread_messages'] = &$context['labels'][-1]['unread_messages'];
|
|
$pm_areas['folders']['areas']['inbox']['unread_messages'] = &$context['labels'][-1]['unread_messages'];
|
|
@@ -500,7 +500,7 @@ function MessageFolder()
|
|
elseif ($context['folder'] != 'sent')
|
|
elseif ($context['folder'] != 'sent')
|
|
{
|
|
{
|
|
$labelJoin = '
|
|
$labelJoin = '
|
|
- INNER JOIN {db_prefix}pm_labeled_messages AS pl';
|
|
|
|
|
|
+ INNER JOIN {db_prefix}pm_labeled_messages AS pl ON (pl.id_pm = pm.id_pm)';
|
|
|
|
|
|
$labelQuery2 = '
|
|
$labelQuery2 = '
|
|
AND pl.id_label = ' . $context['current_label_id'];
|
|
AND pl.id_label = ' . $context['current_label_id'];
|