1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

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

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;