]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/PageContent.php
Guest create page: name field autofocus
[bookstack] / app / Entities / Tools / PageContent.php
index 17cd4a0ade501089b5bdd5b2be14684fd50e071f..9aa2e8d352b8650e00a292a959a44414301cf81a 100644 (file)
@@ -382,7 +382,7 @@ class PageContent
             if ($matchedPage && count($splitInclude) === 1) {
                 // If we only have page id, just insert all page html and continue.
                 $replacement = $matchedPage->html;
-            } else if ($matchedPage && count($splitInclude) > 1) {
+            } elseif ($matchedPage && count($splitInclude) > 1) {
                 // Otherwise, if our include tag defines a section, load that specific content
                 $innerContent = $this->fetchSectionOfPage($matchedPage, $splitInclude[1]);
                 $replacement = trim($innerContent);