Skip to content

Commit

Permalink
Removed [page_break] code from article print mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Jan 15, 2020
1 parent c39993d commit bd78f9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public_html/article.php
Expand Up @@ -207,6 +207,12 @@ function extractExternalLinks($text) {

$introtext = $article->DisplayElements('introtext');
$bodytext = $article->DisplayElements('bodytext');

if ($_CONF['allow_page_breaks'] == 1 && $article->displayElements('numpages') > 1) {
// Remove page breaks for print view
$bodytext = str_replace('[page_break]', '', $bodytext);
}

if (empty($bodytext)) {
$fulltext = $introtext;
$fulltext_no_br = $introtext;
Expand Down

0 comments on commit bd78f9c

Please sign in to comment.