X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/011800d42526ebb4acce4ce001dc53b97995ad53..refs/pull/4467/head:/app/Entities/Tools/PageContent.php diff --git a/app/Entities/Tools/PageContent.php b/app/Entities/Tools/PageContent.php index 67f3ea338..949816eff 100644 --- a/app/Entities/Tools/PageContent.php +++ b/app/Entities/Tools/PageContent.php @@ -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;