1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 07:41:22 +02:00

Fix update page with custom base path (#1947)

Calling UpdateHandler causes RouteNotFoundException when basepath is not /.
This commit is contained in:
w-4
2019-12-05 05:37:33 +07:00
committed by Franz Liedke
parent 37c7df703f
commit 1293b95fc1

View File

@@ -92,6 +92,7 @@ class InstalledApp implements AppInterface
private function getUpdaterHandler()
{
$pipe = new MiddlewarePipe;
$pipe->pipe(new BasePath($this->basePath()));
$pipe->pipe(
new DispatchRoute($this->container->make('flarum.update.routes'))
);