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 12, 2024
1 parent d350612 commit af32adf
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 @@ -10,7 +10,7 @@ function content($content) {
if (!$content || false === \strpos($content, '<')) {
return $content;
}
\extract($GLOBALS, \EXTR_SKIP);
\extract(\lot(), \EXTR_SKIP);
$alter = $state->x->link ?? [];
$alter_content = (array) ($alter->content ?? []);
$alter_data = (array) ($alter->data ?? []);
Expand Down Expand Up @@ -101,7 +101,7 @@ function data($content, $data) {
return $content;
}
function kick($path) {
return \x\link\link($path ?? $GLOBALS['url']->current());
return \x\link\link($path ?? \lot('url')->current());
}
function link($path) {
if (\is_string($path)) {
Expand Down

0 comments on commit af32adf

Please sign in to comment.