removed http2push from dashboard
This commit is contained in:
parent
765fbdeb25
commit
7496ba8f3a
|
@ -37,7 +37,6 @@ class DashboardController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$filesystem = $this->getStorage();
|
$filesystem = $this->getStorage();
|
||||||
$base_url = Flight::get('config')['base_url'];
|
|
||||||
|
|
||||||
foreach ($medias as $media) {
|
foreach ($medias as $media) {
|
||||||
$extension = pathinfo($media->filename, PATHINFO_EXTENSION);
|
$extension = pathinfo($media->filename, PATHINFO_EXTENSION);
|
||||||
|
@ -50,10 +49,6 @@ class DashboardController extends Controller
|
||||||
$media->mimetype = $mime;
|
$media->mimetype = $mime;
|
||||||
$media->extension = $extension;
|
$media->extension = $extension;
|
||||||
$media->size = $this->humanFilesize($size);
|
$media->size = $this->humanFilesize($size);
|
||||||
|
|
||||||
if ($type = explode('/', $mime)[0] === 'image') {
|
|
||||||
$this->http2push("$base_url/$media->user_code/$media->code.$extension/raw");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Flight::render(
|
Flight::render(
|
||||||
|
|
2
composer.lock
generated
2
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "a89ea5afa20682a68557acba9279184d",
|
"content-hash": "ff5928bff4f35e40b33b816f810d4409",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "league/flysystem",
|
"name": "league/flysystem",
|
||||||
|
|
Loading…
Reference in a new issue