mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08: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
92cb3b9166
commit
c3f115387e
|
@ -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…
Reference in New Issue
Block a user