mirror of
https://github.com/flarum/core.git
synced 2025-05-04 06:34:45 +02:00
Return empty response
Without this, the new version of Stratigility complained about no response being returned. Old versions were more graceful here, but this is certainly more correct.
This commit is contained in:
parent
8d2d987680
commit
fdbf0c86a1
@ -15,6 +15,7 @@ use Flarum\Extension\ExtensionManager;
|
||||
use Flarum\Http\Controller\ControllerInterface;
|
||||
use Flarum\User\AssertPermissionTrait;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Zend\Diactoros\Response\EmptyResponse;
|
||||
|
||||
class UpdateExtensionController implements ControllerInterface
|
||||
{
|
||||
@ -48,5 +49,7 @@ class UpdateExtensionController implements ControllerInterface
|
||||
} elseif ($enabled === false) {
|
||||
$this->extensions->disable($name);
|
||||
}
|
||||
|
||||
return new EmptyResponse;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user