]> BookStack Code Mirror - bookstack/commitdiff
Resolves heading issues in grid view
authorNilesh Deepak <redacted>
Sat, 15 Jul 2017 10:52:29 +0000 (16:22 +0530)
committerNilesh Deepak <redacted>
Sat, 15 Jul 2017 10:52:29 +0000 (16:22 +0530)
app/Book.php

index be90e0e1af707d97c4775fab4a09a7e32c167e60..538505266530272fd08a4f4d33fa2e8adc59be62 100644 (file)
@@ -34,8 +34,8 @@ class Book extends Entity
 
     public function getHeadingExcerpt($length = 35)
     {
-        $heading = $this->name;
-        return strlen($heading) > $length ? substr($heading, 0, $length-3) . '...' : $heading;
+        $bookHeading = $this->name;
+        return strlen($bookHeading) > $length ? substr($bookHeading, 0, $length-3) . '...' : $bookHeading;
     }
     
     public function cover()
Morty Proxy This is a proxified and sanitized view of the page, visit original site.