Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
5 changed files with 9 additions and 5 deletions
Showing only changes of commit 69991a126a - Show all commits

View File

@ -1,5 +1,9 @@
# Changelog # 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 ## Version 5
* Updated PHP requirement to 7.4 * Updated PHP requirement to 7.4
* Added anime watching history view * Added anime watching history view

View File

@ -26,7 +26,7 @@
</head> </head>
<body class="<?= $escape->attr($url_type) ?> list"> <body class="<?= $escape->attr($url_type) ?> list">
<?php include 'setup-check.php' ?> <?php include 'setup-check.php' ?>
<header tabindex="0"> <header>
<?php <?php
include 'main-menu.php'; include 'main-menu.php';
if(isset($message) && is_array($message)) if(isset($message) && is_array($message))

View File

@ -55,7 +55,7 @@ use Aviat\AnimeClient\API\Kitsu;
$character = $component->character( $character = $component->character(
$item['character']['canonicalName'], $item['character']['canonicalName'],
$url->generate('character', ['slug' => $item['character']['slug']]), $url->generate('character', ['slug' => $item['character']['slug']]),
$helper->picture(getLocalImg($item['character']['image']['original'])) $helper->picture(getLocalImg($item['character']['image']['original'] ?? null))
); );
$medias = []; $medias = [];
foreach ($item['media'] as $sid => $series) foreach ($item['media'] as $sid => $series)

View File

@ -119,7 +119,7 @@ final class Kitsu {
break; break;
default: 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); array_shift($valid);
return $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); array_shift($valid);
return $valid; return $valid;