]> git.mxchange.org Git - friendica.git/commitdiff
Some more stuff removed
authorMichael <heluecht@pirati.ca>
Sat, 24 Jul 2021 17:49:10 +0000 (17:49 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 24 Jul 2021 17:49:10 +0000 (17:49 +0000)
mod/photos.php

index f999b29d8e287a2dfb81feda91b5cb4c35552de0..e4b0dcf4ede9f626ae0b778640cd3e1c45ff8c56 100644 (file)
@@ -75,8 +75,6 @@ function photos_init(App $a) {
                $ret = ['success' => false];
 
                if ($albums) {
-                       $a->data['albums'] = $albums;
-
                        if ($albums_visible) {
                                $ret['success'] = true;
                        }
@@ -919,8 +917,9 @@ function photos_content(App $a)
                $albumselect = '';
 
                $albumselect .= '<option value="" ' . (!$selname ? ' selected="selected" ' : '') . '>&lt;current year&gt;</option>';
-               if (!empty($a->data['albums'])) {
-                       foreach ($a->data['albums'] as $album) {
+               $albums = Photo::getAlbums($owner_uid);
+               if (!empty($albums)) {
+                       foreach ($albums as $album) {
                                if (($album['album'] === '') || ($album['album'] === Photo::CONTACT_PHOTOS) || ($album['album'] === DI::l10n()->t(Photo::CONTACT_PHOTOS))) {
                                        continue;
                                }