]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Conversation/Channel.php
Update function / rearrange tab order
[friendica.git] / src / Module / Conversation / Channel.php
index a6c20ef3d817b9e87f5aef01ed7214f90b8f13e6..d6f3088feee92f2d163648782cca40886b637db8 100644 (file)
@@ -78,15 +78,6 @@ class Channel extends BaseModule
                if (empty($_GET['mode']) || ($_GET['mode'] != 'raw')) {
                        $tabs = [];
 
-                       $tabs[] = [
-                               'label'     => DI::l10n()->t('Whats Hot'),
-                               'url'       => 'channel/' . self::WHATSHOT,
-                               'sel'       => self::$content == self::WHATSHOT ? 'active' : '',
-                               'title'     => DI::l10n()->t('Posts with a lot of interactions'),
-                               'id'        => 'channel-whatshot-tab',
-                               'accesskey' => 'h'
-                       ];
-
                        $tabs[] = [
                                'label'     => DI::l10n()->t('For you'),
                                'url'       => 'channel/' . self::FORYOU,
@@ -104,6 +95,15 @@ class Channel extends BaseModule
                                'id'        => 'channel-followers-tab',
                                'accesskey' => 'f'
                        ];
+                       
+                       $tabs[] = [
+                               'label'     => DI::l10n()->t('Whats Hot'),
+                               'url'       => 'channel/' . self::WHATSHOT,
+                               'sel'       => self::$content == self::WHATSHOT ? 'active' : '',
+                               'title'     => DI::l10n()->t('Posts with a lot of interactions'),
+                               'id'        => 'channel-whatshot-tab',
+                               'accesskey' => 'h'
+                       ];
 
                        $tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
                        $o .= Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]);
@@ -189,7 +189,7 @@ class Channel extends BaseModule
 
                self::$content = $this->parameters['content'] ?? '';
                if (!self::$content) {
-                       self::$content = self::WHATSHOT;
+                       self::$content = self::FORYOU;
                }
 
                if (!in_array(self::$content, [self::WHATSHOT, self::FORYOU, self::FOLLOWERS])) {