diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d602057..95e39fa7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Version 5.1 +* Added session check, so when coming back to a page, if the session is expired, the page will refresh. +* Updated logging config so that much fewer, much smaller files are generated. + ## Version 5 * Updated PHP requirement to 7.4 * Added anime watching history view diff --git a/app/views/header.php b/app/views/header.php index 16fc6d55..930bba74 100644 --- a/app/views/header.php +++ b/app/views/header.php @@ -26,7 +26,7 @@ -
+
character( $item['character']['canonicalName'], $url->generate('character', ['slug' => $item['character']['slug']]), - $helper->picture(getLocalImg($item['character']['image']['original'])) + $helper->picture(getLocalImg($item['character']['image']['original'] ?? null)) ); $medias = []; foreach ($item['media'] as $sid => $series) diff --git a/src/AnimeClient/API/Kitsu.php b/src/AnimeClient/API/Kitsu.php index 8b21bd90..08ecf1e8 100644 --- a/src/AnimeClient/API/Kitsu.php +++ b/src/AnimeClient/API/Kitsu.php @@ -119,7 +119,7 @@ final class Kitsu { break; default: - continue 2; + // Do Nothing } } @@ -328,7 +328,7 @@ final class Kitsu { } } - // Don't return the canonical titles + // Don't return the canonical title array_shift($valid); return $valid; @@ -356,7 +356,7 @@ final class Kitsu { } } - // Don't return the canonical titles + // Don't return the canonical title array_shift($valid); return $valid; diff --git a/src/AnimeClient/API/Kitsu/Queries/GetLibraryAll.graphql b/src/AnimeClient/API/Kitsu/Queries/GetLibrary.graphql similarity index 100% rename from src/AnimeClient/API/Kitsu/Queries/GetLibraryAll.graphql rename to src/AnimeClient/API/Kitsu/Queries/GetLibrary.graphql