mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-07 02:20:59 +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 */
|
/* Catch all route */
|
||||||
$app->get('/{path:.*}', function($request, $response) {
|
$app->get('/{path:.*}', function($request, $response) use ($settings) {
|
||||||
return $response
|
return $response
|
||||||
->withHeader('Location', $settings->_httpRoot.'out/out.ViewFolder.php')
|
->withHeader('Location', $settings->_httpRoot.'out/out.ViewFolder.php')
|
||||||
->withStatus(302);
|
->withStatus(302);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user