diff --git a/app/Entities/Tools/PageContent.php b/app/Entities/Tools/PageContent.php index b4bc8b91b..67f3ea338 100644 --- a/app/Entities/Tools/PageContent.php +++ b/app/Entities/Tools/PageContent.php @@ -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;