]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseProfile.php
Use centralized function to fetch query results
[friendica.git] / src / Module / BaseProfile.php
index 7ab7b8b7ce7eaf64afd02709cbfabab5e45b475b..3937fa07d2ee2b2da5b801882caeec47b3c708d0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -68,15 +68,14 @@ class BaseProfile extends BaseModule
                                'id'    => 'photo-tab',
                                'accesskey' => 'h',
                        ],
-// @todo Currently deactivated since it doesn't really work
-//                     [
-//                             'label' => DI::l10n()->t('Videos'),
-//                             'url'   => DI::baseUrl() . '/videos/' . $nickname,
-//                             'sel'   => $current == 'videos' ? 'active' : '',
-//                             'title' => DI::l10n()->t('Videos'),
-//                             'id'    => 'video-tab',
-//                             'accesskey' => 'v',
-//                     ],
+                       [
+                               'label' => DI::l10n()->t('Media'),
+                               'url'   => $baseProfileUrl . '/media',
+                               'sel'   => $current == 'media' ? 'active' : '',
+                               'title' => DI::l10n()->t('Media'),
+                               'id'    => 'media-tab',
+                               'accesskey' => 'd',
+                       ],
                ];
 
                // the calendar link for the full featured events calendar