]> BookStack Code Mirror - bookstack/blobdiff - app/Entity.php
Merge branch 'fix/ru-locale' of git://github.com/mullinsmikey/BookStack into mullinsm...
[bookstack] / app / Entity.php
index bc43aae2f8a3adc9a07d80e6e91b29e93dbc87db..252a3e07ab5a04f87acdc377a550aebdd92b1164 100644 (file)
@@ -152,7 +152,7 @@ class Entity extends Ownable
      */
     public static function getEntityInstance($type)
     {
-        $types = ['Page', 'Book', 'Chapter'];
+        $types = ['Page', 'Book', 'Chapter', 'Bookshelf'];
         $className = str_replace([' ', '-', '_'], '', ucwords($type));
         if (!in_array($className, $types)) {
             return null;