Skip to content

Commit

Permalink
Fix older $showall bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ReLater committed Apr 19, 2018
1 parent fb82106 commit 2c9ff68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/content/pagebreak/pagebreak.php
Expand Up @@ -315,8 +315,8 @@ protected function _createToc(&$row, &$matches, &$page)
{
$list[$i] = new stdClass;
$list[$i]->link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catid, $row->language) . '&showall=1&limitstart=');
$list[$i]->liClass = ($limitstart === $i - 1) ? 'active' : '';
$list[$i]->class = ($limitstart === $i - 1) ? 'toclink active' : 'toclink';
$list[$i]->liClass = ($showall === 1) ? 'active' : '';
$list[$i]->class = ($showall === 1) ? 'toclink active' : 'toclink';
$list[$i]->title = JText::_('PLG_CONTENT_PAGEBREAK_ALL_PAGES');
}

Expand Down

0 comments on commit 2c9ff68

Please sign in to comment.