Some more stuff removed
This commit is contained in:
parent
2420bf84db
commit
784770db6f
1 changed files with 3 additions and 4 deletions
|
@ -75,8 +75,6 @@ function photos_init(App $a) {
|
||||||
$ret = ['success' => false];
|
$ret = ['success' => false];
|
||||||
|
|
||||||
if ($albums) {
|
if ($albums) {
|
||||||
$a->data['albums'] = $albums;
|
|
||||||
|
|
||||||
if ($albums_visible) {
|
if ($albums_visible) {
|
||||||
$ret['success'] = true;
|
$ret['success'] = true;
|
||||||
}
|
}
|
||||||
|
@ -919,8 +917,9 @@ function photos_content(App $a)
|
||||||
$albumselect = '';
|
$albumselect = '';
|
||||||
|
|
||||||
$albumselect .= '<option value="" ' . (!$selname ? ' selected="selected" ' : '') . '><current year></option>';
|
$albumselect .= '<option value="" ' . (!$selname ? ' selected="selected" ' : '') . '><current year></option>';
|
||||||
if (!empty($a->data['albums'])) {
|
$albums = Photo::getAlbums($owner_uid);
|
||||||
foreach ($a->data['albums'] as $album) {
|
if (!empty($albums)) {
|
||||||
|
foreach ($albums as $album) {
|
||||||
if (($album['album'] === '') || ($album['album'] === Photo::CONTACT_PHOTOS) || ($album['album'] === DI::l10n()->t(Photo::CONTACT_PHOTOS))) {
|
if (($album['album'] === '') || ($album['album'] === Photo::CONTACT_PHOTOS) || ($album['album'] === DI::l10n()->t(Photo::CONTACT_PHOTOS))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue