]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/PageContent.php
changed PageContent.php to accept nested includes (#4192)
[bookstack] / app / Entities / Tools / PageContent.php
index b4bc8b91b13cd680f3119822bd82b86ec9d67e6e..67f3ea338f981849762247c66548972dd879b934 100644 (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;