Skip to content

Commit

Permalink
! fix #1878 package server controller missing tab data
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Aug 1, 2022
1 parent 1156da8 commit 551d32d
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion sources/admin/PackageServers.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function pre_dispatch()
*/
public function action_index()
{
global $txt, $context;
global $txt, $context, $scripturl;

// This is for admins only.
isAllowedTo('admin_forum');
Expand Down Expand Up @@ -81,6 +81,27 @@ public function action_index()
// Set up action/subaction stuff.
$action = new Action('package_servers');

// Set up some tabs...
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['package_manager'],
'description' => $txt['upload_packages_desc'],
'class' => 'database',
'tabs' => array(
'browse' => array(
'url' => $scripturl . '?action=admin;area=packages;sa=browse',
'label' => $txt['browse_packages'],
),
'installed' => array(
'url' => $scripturl . '?action=admin;area=packages;sa=installed',
'label' => $txt['installed_packages'],
),
'options' => array(
'url' => $scripturl . '?action=admin;area=packages;sa=options',
'label' => $txt['package_settings'],
),
),
);

// Now let's decide where we are taking this... call integrate_sa_package_servers
$subAction = $action->initialize($subActions, 'servers');

Expand Down

0 comments on commit 551d32d

Please sign in to comment.