Browse Source

Add nav element for API settings

tags/3.1.0
Mike Koch 2 years ago
parent
commit
c39e4462e8
2 changed files with 15 additions and 2 deletions
  1. 1
    1
      admin/api_settings.php
  2. 14
    1
      inc/show_admin_nav.inc.php

+ 1
- 1
admin/api_settings.php View File

@@ -2,7 +2,7 @@

define('IN_SCRIPT', 1);
define('HESK_PATH', '../');
define('PAGE_TITLE', 'ADMIN_SETTINGS');
define('PAGE_TITLE', 'ADMIN_API_SETTINGS');
define('MFH_PAGE_LAYOUT', 'TOP_ONLY');

// Make sure the install folder is deleted

+ 14
- 1
inc/show_admin_nav.inc.php View File

@@ -473,7 +473,7 @@ $mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hes
</li>';
}
if (hesk_checkPermission('can_man_settings', 0)) {
$number_of_settings++;
$number_of_settings += 2;
$active = '';
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_SETTINGS') {
$active = 'active';
@@ -486,6 +486,19 @@ $mails = mfh_get_mail_headers_for_dropdown($_SESSION['id'], $hesk_settings, $hes
<span>' . $hesklang['helpdesk_settings'] . '</span>
</a>
</li>';

$active = '';
if (defined('PAGE_TITLE') && PAGE_TITLE == 'ADMIN_API_SETTINGS') {
$active = 'active';
}

$markup .= '
<li class="' . $active . '">
<a href="api_settings.php">
<i class="fa fa-fw fa-cog" ' . $iconDisplay . '></i>
<span>' . $hesklang['api_settings'] . '</span>
</a>
</li>';
}

if ($number_of_settings == 1) :

Loading…
Cancel
Save