mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
remove mime update on progress function execute #10
This commit is contained in:
parent
686479e7f1
commit
b475b4e61b
1 changed files with 0 additions and 7 deletions
|
|
@ -197,19 +197,12 @@ foreach($index->search('')
|
||||||
$uploaded
|
$uploaded
|
||||||
) {
|
) {
|
||||||
global $config;
|
global $config;
|
||||||
global $request;
|
|
||||||
|
|
||||||
global $index;
|
global $index;
|
||||||
global $document;
|
global $document;
|
||||||
|
|
||||||
if (!$mime = curl_getinfo($request, CURLINFO_CONTENT_TYPE))
|
|
||||||
{
|
|
||||||
$mime = $document->get('mime');
|
|
||||||
}
|
|
||||||
|
|
||||||
$index->updateDocument(
|
$index->updateDocument(
|
||||||
[
|
[
|
||||||
'mime' => $mime,
|
|
||||||
'time' => time(),
|
'time' => time(),
|
||||||
'code' => 200,
|
'code' => 200,
|
||||||
'index' => 0
|
'index' => 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue