mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 22:30:30 -04:00
Fix broken updated timestamps in OPDS feeds, and fix and add some type hints.
This commit is contained in:
parent
34e35194d8
commit
06b82cdaaa
15 changed files with 344 additions and 300 deletions
|
@ -1,5 +1,5 @@
|
|||
<?
|
||||
// Composer auto-loads the lib/ directory in composer.json
|
||||
// Composer auto-loads the `lib/` directory in `composer.json`.
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use function Safe\error_log;
|
||||
|
@ -74,8 +74,7 @@ if($GLOBALS['User'] === null){
|
|||
$httpBasicAuthLogin = $_SERVER['PHP_AUTH_USER'] ?? null;
|
||||
|
||||
if($httpBasicAuthLogin !== null){
|
||||
// If there's no logged in user, but a username was sent via HTTP basic auth,
|
||||
// log them in while we're here.
|
||||
// If there's no logged in user, but a username was sent via HTTP basic auth, log them in while we're here.
|
||||
|
||||
$session = new Session();
|
||||
try{
|
||||
|
@ -90,7 +89,7 @@ if($GLOBALS['User'] === null){
|
|||
$GLOBALS['User'] = $session->User;
|
||||
}
|
||||
catch(Exception){
|
||||
// Do nothing
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue