From 78eb736ac603f806d60de6d92894d9774e0e5222 Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Sat, 30 Mar 2024 09:30:07 +0700 Subject: [PATCH] Use `lot()` Function --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ab5b1d6..6e77b82 100644 --- a/index.php +++ b/index.php @@ -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) { @@ -18,7 +18,7 @@ } ksort($links); return $links; -})([], $state, $url)); +})([], $state, $url))); $states = [ 'route-blog' => '/article',