mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 07:00:04 +08: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:
parent
647ce6c237
commit
011800d425
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user