Skip to content

Commit

Permalink
changed PageContent.php to accept nested includes (#4192)
Browse files Browse the repository at this point in the history
* changed app/Entities/Tools/PageContent.php to accept nested include levels. Tested it and it works.

* changed recommendations

This loop is now only around parsePageIncludes and bugfixes the space indentation.

* Update PageContent.php

fix spaces
  • Loading branch information
jasonF1000 authored Apr 27, 2023
1 parent 647ce6c commit 011800d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Entities/Tools/PageContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,10 @@ public function render(bool $blankIncludes = false): string

if ($blankIncludes) {
$content = $this->blankPageIncludes($content);
} else {
$content = $this->parsePageIncludes($content);
} else {
for ($includeDepth = 0; $includeDepth <= 3; $includeDepth++) {
$content = $this->parsePageIncludes($content);
}
}

return $content;
Expand Down

0 comments on commit 011800d

Please sign in to comment.