Skip to content

Commit

Permalink
Late Enough
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jun 21, 2023
1 parent 02d16be commit 58aee0a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions index/panel/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ function __tweak($_) {
'stack' => 10,
'type' => 'fields'
];
// Had to set these hidden value(s) later because panel route(s) will be executed before native type definition file(s)
\Hook::set('_', function ($_) {
$_['lot']['desk']['lot']['form']['values']['file']['name'] = 'state.php';
$_['lot']['desk']['lot']['form']['values']['path'] = 'x/panel.tweak';
return $_;
}, 0);
$_['lot']['desk']['lot']['form']['values']['file']['name'] = 'state.php';
$_['lot']['desk']['lot']['form']['values']['path'] = 'x/panel.tweak';
$GLOBALS['file'] = $file = new \File(\LOT . \D . 'x' . \D . 'panel.tweak' . \D . 'state.php');
return $_;
}

0 comments on commit 58aee0a

Please sign in to comment.