1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 15:42:41 +01:00
This commit is contained in:
Nilesh Deepak 2017-07-12 18:04:06 +05:30
parent d37b398e79
commit 24ee78ccd8
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class Book extends Entity
return baseUrl('/books/' . urlencode($this->slug));
}
public function getBookCover($size = 120)
public function getBookCover()
{
$default = baseUrl('/default.png');
$image = $this->image;

View File

@ -7,7 +7,7 @@
</h4>
<div class="gallery-image">
<a class="text-book entity-list-item-link" href="{{$book->getUrl()}}">
<img src="{{$book->getBookCover(192)}}" alt="{{$book->name}}">
<img src="{{$book->getBookCover()}}" alt="{{$book->name}}">
</a>
</div>
@if(isset($book->searchSnippet))