Skip to content

Commit

Permalink
Use lot() Function
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Mar 30, 2024
1 parent f6f8811 commit 78eb736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$z = defined('TEST') && TEST ? '.' : '.min.';
Asset::set(__DIR__ . D . 'index' . $z . 'css', 20);

$GLOBALS['links'] = new Anemone((static function ($links, $state, $url) {
lot('links', new Anemone((static function ($links, $state, $url) {
$index = LOT . D . 'page' . D . trim(strtr($state->route, '/', D), D) . '.page';
$path = $url->path . '/';
foreach (g(LOT . D . 'page', 'page') as $k => $v) {
Expand All @@ -18,7 +18,7 @@
}
ksort($links);
return $links;
})([], $state, $url));
})([], $state, $url)));

$states = [
'route-blog' => '/article',
Expand Down

0 comments on commit 78eb736

Please sign in to comment.