PROFILE_PHOTOS is mostly removed and replaced
This commit is contained in:
parent
ee5fb6238c
commit
3781b34272
8 changed files with 61 additions and 53 deletions
15
update.php
15
update.php
|
@ -1038,3 +1038,18 @@ function update_1440()
|
|||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update__1441()
|
||||
{
|
||||
$languages = DI::l10n()->getAvailableLanguages();
|
||||
|
||||
$albums = [Photo::PROFILE_PHOTOS];
|
||||
foreach ($languages as $language) {
|
||||
$albums[] = DI::l10n()->withLang($language)->t(Photo::PROFILE_PHOTOS);
|
||||
}
|
||||
$albums = array_unique($albums);
|
||||
|
||||
Photo::update(['photo-type' => Photo::USER_AVATAR], ['album' => $albums]);
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue