1
0
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:
Franz Liedke 2018-03-19 23:06:22 +01:00
parent 8d2d987680
commit fdbf0c86a1
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -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;
}
}