changed PageContent.php to accept nested includes (#4192)
* 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
This commit is contained in:
parent
647ce6c237
commit
011800d425
|
@ -303,8 +303,10 @@ class PageContent
|
||||||
|
|
||||||
if ($blankIncludes) {
|
if ($blankIncludes) {
|
||||||
$content = $this->blankPageIncludes($content);
|
$content = $this->blankPageIncludes($content);
|
||||||
} else {
|
} else {
|
||||||
$content = $this->parsePageIncludes($content);
|
for ($includeDepth = 0; $includeDepth <= 3; $includeDepth++) {
|
||||||
|
$content = $this->parsePageIncludes($content);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
|
|
Loading…
Reference in New Issue