Merge branch 'master' of https://github.com/BookStackApp/BookStack
Showing
4 changed files
with
11 additions
and
4 deletions
| ... | @@ -332,12 +332,12 @@ class EntityRepo | ... | @@ -332,12 +332,12 @@ class EntityRepo |
| 332 | $parents[$key] = $entities[$index]; | 332 | $parents[$key] = $entities[$index]; |
| 333 | $parents[$key]->setAttribute('pages', collect()); | 333 | $parents[$key]->setAttribute('pages', collect()); |
| 334 | } | 334 | } |
| 335 | - if ($entities[$index]->chapter_id === 0) $tree[] = $entities[$index]; | 335 | + if ($entities[$index]->chapter_id === 0 || $entities[$index]->chapter_id === '0') $tree[] = $entities[$index]; |
| 336 | $entities[$index]->book = $book; | 336 | $entities[$index]->book = $book; |
| 337 | } | 337 | } |
| 338 | 338 | ||
| 339 | foreach ($entities as $entity) { | 339 | foreach ($entities as $entity) { |
| 340 | - if ($entity->chapter_id === 0) continue; | 340 | + if ($entity->chapter_id === 0 || $entity->chapter_id === '0') continue; |
| 341 | $parentKey = 'BookStack\\Chapter:' . $entity->chapter_id; | 341 | $parentKey = 'BookStack\\Chapter:' . $entity->chapter_id; |
| 342 | $chapter = $parents[$parentKey]; | 342 | $chapter = $parents[$parentKey]; |
| 343 | $chapter->pages->push($entity); | 343 | $chapter->pages->push($entity); | ... | ... |
| ... | @@ -165,7 +165,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon | ... | @@ -165,7 +165,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon |
| 165 | if ($imageId === 0 || $imageId === '0' || $imageId === null) return $default; | 165 | if ($imageId === 0 || $imageId === '0' || $imageId === null) return $default; |
| 166 | 166 | ||
| 167 | try { | 167 | try { |
| 168 | - $avatar = baseUrl($this->avatar->getThumb($size, $size, false)); | 168 | + $avatar = $this->avatar ? baseUrl($this->avatar->getThumb($size, $size, false)) : $default; |
| 169 | } catch (\Exception $err) { | 169 | } catch (\Exception $err) { |
| 170 | $avatar = $default; | 170 | $avatar = $default; |
| 171 | } | 171 | } | ... | ... |
| ... | @@ -49,7 +49,9 @@ | ... | @@ -49,7 +49,9 @@ |
| 49 | ], | 49 | ], |
| 50 | "post-install-cmd": [ | 50 | "post-install-cmd": [ |
| 51 | "Illuminate\\Foundation\\ComposerScripts::postInstall", | 51 | "Illuminate\\Foundation\\ComposerScripts::postInstall", |
| 52 | - "php artisan optimize" | 52 | + "php artisan optimize", |
| 53 | + "php artisan cache:clear", | ||
| 54 | + "php artisan view:clear" | ||
| 53 | ], | 55 | ], |
| 54 | "post-update-cmd": [ | 56 | "post-update-cmd": [ |
| 55 | "Illuminate\\Foundation\\ComposerScripts::postUpdate", | 57 | "Illuminate\\Foundation\\ComposerScripts::postUpdate", | ... | ... |
| ... | @@ -119,6 +119,11 @@ sup, .superscript { | ... | @@ -119,6 +119,11 @@ sup, .superscript { |
| 119 | font-size: 0.8em; | 119 | font-size: 0.8em; |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | +sub, .subscript { | ||
| 123 | + vertical-align: sub; | ||
| 124 | + font-size: 0.8em; | ||
| 125 | +} | ||
| 126 | + | ||
| 122 | pre { | 127 | pre { |
| 123 | font-family: monospace; | 128 | font-family: monospace; |
| 124 | white-space:pre; | 129 | white-space:pre; | ... | ... |
-
Please register or sign in to post a comment