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:
jasonF1000 2023-04-27 16:51:46 +02:00 committed by GitHub
parent 647ce6c237
commit 011800d425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,8 +303,10 @@ class PageContent
if ($blankIncludes) {
$content = $this->blankPageIncludes($content);
} else {
$content = $this->parsePageIncludes($content);
} else {
for ($includeDepth = 0; $includeDepth <= 3; $includeDepth++) {
$content = $this->parsePageIncludes($content);
}
}
return $content;