mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Merge branch 'master' of https://github.com/BookStackApp/BookStack
This commit is contained in:
commit
54d1fcde5b
@ -332,12 +332,12 @@ class EntityRepo
|
|||||||
$parents[$key] = $entities[$index];
|
$parents[$key] = $entities[$index];
|
||||||
$parents[$key]->setAttribute('pages', collect());
|
$parents[$key]->setAttribute('pages', collect());
|
||||||
}
|
}
|
||||||
if ($entities[$index]->chapter_id === 0) $tree[] = $entities[$index];
|
if ($entities[$index]->chapter_id === 0 || $entities[$index]->chapter_id === '0') $tree[] = $entities[$index];
|
||||||
$entities[$index]->book = $book;
|
$entities[$index]->book = $book;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($entities as $entity) {
|
foreach ($entities as $entity) {
|
||||||
if ($entity->chapter_id === 0) continue;
|
if ($entity->chapter_id === 0 || $entity->chapter_id === '0') continue;
|
||||||
$parentKey = 'BookStack\\Chapter:' . $entity->chapter_id;
|
$parentKey = 'BookStack\\Chapter:' . $entity->chapter_id;
|
||||||
$chapter = $parents[$parentKey];
|
$chapter = $parents[$parentKey];
|
||||||
$chapter->pages->push($entity);
|
$chapter->pages->push($entity);
|
||||||
|
@ -165,7 +165,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
|||||||
if ($imageId === 0 || $imageId === '0' || $imageId === null) return $default;
|
if ($imageId === 0 || $imageId === '0' || $imageId === null) return $default;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$avatar = baseUrl($this->avatar->getThumb($size, $size, false));
|
$avatar = $this->avatar ? baseUrl($this->avatar->getThumb($size, $size, false)) : $default;
|
||||||
} catch (\Exception $err) {
|
} catch (\Exception $err) {
|
||||||
$avatar = $default;
|
$avatar = $default;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,9 @@
|
|||||||
],
|
],
|
||||||
"post-install-cmd": [
|
"post-install-cmd": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postInstall",
|
"Illuminate\\Foundation\\ComposerScripts::postInstall",
|
||||||
"php artisan optimize"
|
"php artisan optimize",
|
||||||
|
"php artisan cache:clear",
|
||||||
|
"php artisan view:clear"
|
||||||
],
|
],
|
||||||
"post-update-cmd": [
|
"post-update-cmd": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
|
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
|
||||||
|
@ -119,6 +119,11 @@ sup, .superscript {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub, .subscript {
|
||||||
|
vertical-align: sub;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
white-space:pre;
|
white-space:pre;
|
||||||
|
Loading…
Reference in New Issue
Block a user