config: auth_start_href() in index.php definiert (fehlende Funktion nach Merge)
Commit 8217f68 rief auth_start_href() in report-form.php und login.php auf, ohne die Funktion zu definieren. Generiert auth/start.php?return= mit dem aktuellen Request-URI als Return-Pfad. In index.php statt config.php da config.php skip-worktree hat. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4345fadc1c
commit
e40bdbea1c
@ -2,6 +2,11 @@
|
|||||||
require_once __DIR__ . '/config.php';
|
require_once __DIR__ . '/config.php';
|
||||||
session_start_safe();
|
session_start_safe();
|
||||||
|
|
||||||
|
function auth_start_href(): string {
|
||||||
|
$return = $_SERVER['REQUEST_URI'] ?? '/';
|
||||||
|
return 'auth/start.php?return=' . urlencode($return);
|
||||||
|
}
|
||||||
|
|
||||||
$authenticated = !empty($_SESSION['access_token'])
|
$authenticated = !empty($_SESSION['access_token'])
|
||||||
&& ($_SESSION['token_expires'] ?? 0) > time();
|
&& ($_SESSION['token_expires'] ?? 0) > time();
|
||||||
|
|
||||||
|
|||||||
@ -1302,6 +1302,7 @@ function initTimeline(planId) {
|
|||||||
const timestamp = found ? assignmentStartMs(found.mechanic, found.assignment) : 0;
|
const timestamp = found ? assignmentStartMs(found.mechanic, found.assignment) : 0;
|
||||||
const items = rows
|
const items = rows
|
||||||
.filter(row => jobCanUseAbility(row.job, block.dataset.ability))
|
.filter(row => jobCanUseAbility(row.job, block.dataset.ability))
|
||||||
|
.filter((row, idx, arr) => arr.findIndex(r => r.job === row.job) === idx)
|
||||||
.map(row => ({
|
.map(row => ({
|
||||||
label: `${row.job}${row.name ? ` · ${row.name}` : ''}`,
|
label: `${row.job}${row.name ? ` · ${row.name}` : ''}`,
|
||||||
icon: MITIG_ICONS[block.dataset.ability] ?? '',
|
icon: MITIG_ICONS[block.dataset.ability] ?? '',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user