]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/PageContent.php
Fixed OIDC Logout
[bookstack] / app / Entities / Tools / PageContent.php
index 67f3ea338f981849762247c66548972dd879b934..949816eff577cc2fc67e0a36c8507bc4d2efe8d1 100644 (file)
@@ -303,10 +303,10 @@ class PageContent
 
         if ($blankIncludes) {
             $content = $this->blankPageIncludes($content);
-            } else {
-                for ($includeDepth = 0; $includeDepth <= 3; $includeDepth++) {
-                    $content = $this->parsePageIncludes($content);
-                }
+        } else {
+            for ($includeDepth = 0; $includeDepth < 3; $includeDepth++) {
+                $content = $this->parsePageIncludes($content);
+            }
         }
 
         return $content;