Skip to content

Commit

Permalink
Fix showing quote blocks in message part popup view
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 29, 2014
1 parent a7484b5 commit fa0be92
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions imp/lib/Mime/Viewer/Plain.php
Expand Up @@ -130,19 +130,19 @@ protected function _impRender($inline)

// Highlight quoted parts of an email.
if ($prefs->getValue('highlight_text')) {
if ($registry->getView() == $registry::VIEW_SMARTMOBILE) {
$hideBlocks = $js_blocks = false;
} else {
$hideBlocks = $js_blocks = false;
if ($registry->getView() !== $registry::VIEW_SMARTMOBILE) {
$js_blocks = $inline;
$show = $prefs->getValue('show_quoteblocks');
$hideBlocks = $inline &&
(($show == 'hidden') ||
(($show == 'thread') && ($injector->getInstance('Horde_Variables')->page == 'thread')));
if (!$hideBlocks &&
in_array($show, array('list', 'listthread'))) {
$header = $this->getConfigParam('imp_contents')->getHeader();
$list_info = $injector->getInstance('IMP_Message_Ui')->getListInformation($header);
$hideBlocks = $list_info['exists'];
if ($inline) {
$show = $prefs->getValue('show_quoteblocks');
$hideBlocks = (($show == 'hidden') ||
(($show == 'thread') && ($injector->getInstance('Horde_Variables')->page == 'thread')));
if (!$hideBlocks &&
in_array($show, array('list', 'listthread'))) {
$header = $this->getConfigParam('imp_contents')->getHeader();
$list_info = $injector->getInstance('IMP_Message_Ui')->getListInformation($header);
$hideBlocks = $list_info['exists'];
}
}
}

Expand Down

0 comments on commit fa0be92

Please sign in to comment.