]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Bookshelf.php
Replaced use of custom 'baseUrl' helper with 'url'
[bookstack] / app / Entities / Bookshelf.php
index c8f8b990cde9e019b48d354ef86f1fecb1f178fa..db6685688b3bcd2e6c449338f7ac9e83eef58803 100644 (file)
@@ -39,9 +39,9 @@ class Bookshelf extends Entity
     public function getUrl($path = false)
     {
         if ($path !== false) {
-            return baseUrl('/shelves/' . urlencode($this->slug) . '/' . trim($path, '/'));
+            return url('/shelves/' . urlencode($this->slug) . '/' . trim($path, '/'));
         }
-        return baseUrl('/shelves/' . urlencode($this->slug));
+        return url('/shelves/' . urlencode($this->slug));
     }
 
     /**
@@ -59,7 +59,7 @@ class Bookshelf extends Entity
         }
 
         try {
-            $cover = $this->cover ? baseUrl($this->cover->getThumb($width, $height, false)) : $default;
+            $cover = $this->cover ? url($this->cover->getThumb($width, $height, false)) : $default;
         } catch (\Exception $err) {
             $cover = $default;
         }