]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Managers/BookContents.php
Missed a variable when updating LdapService.
[bookstack] / app / Entities / Managers / BookContents.php
index 779a9292b404d169f9aa893ab29f892dd8613737..52447e43bf0b397d4c69782fed8453793e3a13bf 100644 (file)
@@ -62,7 +62,7 @@ class BookContents
         $all->each(function (Entity $entity) use ($renderPages) {
             $entity->setRelation('book', $this->book);
 
-            if ($renderPages && get_class($entity) == 'BookStack\Entities\Page') {
+            if ($renderPages && $entity->isA('page')) {
                 $entity->html = (new PageContent($entity))->render();
             }
         });