mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-17 17:44:57 +00:00
Merge remote-tracking branch 'Joomla/4.4-dev' into upmerges/2024-05-27
This commit is contained in:
commit
2ca3737858
|
@ -254,8 +254,16 @@ class Helper
|
|||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
|
||||
// Cache the result
|
||||
$type = new \stdClass();
|
||||
$type->title = $title;
|
||||
$type->mime = $mime ?? '';
|
||||
$type->id = (int) $db->insertid();
|
||||
|
||||
$types[$title] = $type;
|
||||
|
||||
// Return the new id.
|
||||
return (int) $db->insertid();
|
||||
return $type->id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user