mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +00:00
$settings must be passed into route function
This commit is contained in:
parent
0e6f14dbaf
commit
a4899a52ad
|
@ -81,7 +81,7 @@ if(true) {
|
|||
}
|
||||
|
||||
/* Catch all route */
|
||||
$app->get('/{path:.*}', function($request, $response) {
|
||||
$app->get('/{path:.*}', function($request, $response) use ($settings) {
|
||||
return $response
|
||||
->withHeader('Location', $settings->_httpRoot.'out/out.ViewFolder.php')
|
||||
->withStatus(302);
|
||||
|
|
Loading…
Reference in New Issue
Block a user