Remove deprecated App::cmd - replace with DI::args()->getCommand()

This commit is contained in:
nupplaPhil
2019-12-16 01:33:13 +01:00
parent e6f61c2cc7
commit 33674808dc
16 changed files with 23 additions and 25 deletions

View File

@@ -221,7 +221,7 @@ function cal_content(App $a)
foreach ($r as $rr) {
$j = $rr['adjust'] ? DateTimeFormat::local($rr['start'], 'j') : DateTimeFormat::utc($rr['start'], 'j');
if (empty($links[$j])) {
$links[$j] = System::baseUrl() . '/' . $a->cmd . '#link-' . $j;
$links[$j] = System::baseUrl() . '/' . DI::args()->getCommand() . '#link-' . $j;
}
}
}