mirror of
https://github.com/flarum/framework.git
synced 2025-02-11 21:28:46 +08:00
Fix update page with custom base path (#1947)
Calling UpdateHandler causes RouteNotFoundException when basepath is not /.
This commit is contained in:
parent
37c7df703f
commit
1293b95fc1
|
@ -92,6 +92,7 @@ class InstalledApp implements AppInterface
|
||||||
private function getUpdaterHandler()
|
private function getUpdaterHandler()
|
||||||
{
|
{
|
||||||
$pipe = new MiddlewarePipe;
|
$pipe = new MiddlewarePipe;
|
||||||
|
$pipe->pipe(new BasePath($this->basePath()));
|
||||||
$pipe->pipe(
|
$pipe->pipe(
|
||||||
new DispatchRoute($this->container->make('flarum.update.routes'))
|
new DispatchRoute($this->container->make('flarum.update.routes'))
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user