mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user