New bootstrap-based layout #30

Merged
Roflin merged 79 commits from bootstrap into master 2023-03-14 19:11:25 +01:00
Showing only changes of commit 65cea8ed8a - Show all commits

View File

@ -42,8 +42,11 @@ class UploadMedia extends HTMLController
$new_ids[] = $asset->getId(); $new_ids[] = $asset->getId();
$asset->linkTags([$tag->id_tag]); $asset->linkTags([$tag->id_tag]);
$tag->id_asset_thumb = $asset->getId(); if (empty($tag->id_asset_thumb))
$tag->save(); {
$tag->id_asset_thumb = $asset->getId();
$tag->save();
}
} }
if (isset($_REQUEST['format']) && $_REQUEST['format'] === 'json') if (isset($_REQUEST['format']) && $_REQUEST['format'] === 'json')