mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +02:00
chore: update CI to v4.6.3 + all php and js dependencies
This commit is contained in:
parent
96b2df15b0
commit
346c00e7b5
206 changed files with 6239 additions and 5336 deletions
|
|
@ -116,12 +116,12 @@ class BaseMedia extends Entity
|
|||
|
||||
public function rename(): bool
|
||||
{
|
||||
$newFileKey = $this->file_directory . '/' . (new File(''))->getRandomName() . '.' . $this->file_extension;
|
||||
$newFileKey = $this->file_directory . '/' . new File('')->getRandomName() . '.' . $this->file_extension;
|
||||
|
||||
$db = db_connect();
|
||||
$db->transStart();
|
||||
|
||||
if (! (new MediaModel())->update($this->id, [
|
||||
if (! new MediaModel()->update($this->id, [
|
||||
'file_key' => $newFileKey,
|
||||
])) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue