From 69991a126a3da1d42a04324e020df2100d641243 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Tue, 25 Aug 2020 15:11:08 -0400 Subject: [PATCH] Misc fixes and tweaks --- CHANGELOG.md | 4 ++++ app/views/header.php | 2 +- app/views/person/details.php | 2 +- src/AnimeClient/API/Kitsu.php | 6 +++--- .../Queries/{GetLibraryAll.graphql => GetLibrary.graphql} | 0 5 files changed, 9 insertions(+), 5 deletions(-) rename src/AnimeClient/API/Kitsu/Queries/{GetLibraryAll.graphql => GetLibrary.graphql} (100%) 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