mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Resolves heading issues in grid view
This commit is contained in:
parent
9872767f20
commit
b4044e6c3a
@ -34,8 +34,8 @@ class Book extends Entity
|
|||||||
|
|
||||||
public function getHeadingExcerpt($length = 35)
|
public function getHeadingExcerpt($length = 35)
|
||||||
{
|
{
|
||||||
$heading = $this->name;
|
$bookHeading = $this->name;
|
||||||
return strlen($heading) > $length ? substr($heading, 0, $length-3) . '...' : $heading;
|
return strlen($bookHeading) > $length ? substr($bookHeading, 0, $length-3) . '...' : $bookHeading;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cover()
|
public function cover()
|
||||||
|
Loading…
Reference in New Issue
Block a user