gruffen commited on 2011-03-28 16:53:08
Showing 2 changed files, with 16 additions and 1 deletions.
... | ... |
@@ -36,7 +36,7 @@ if (!defined('SMF')) |
36 | 36 |
*/ |
37 | 37 |
function shd_admin_main() |
38 | 38 |
{ |
39 |
- global $context, $scripturl, $sourcedir, $settings, $txt, $modSettings; |
|
39 |
+ global $context, $scripturl, $sourcedir, $settings, $txt, $modSettings, $scripturl; |
|
40 | 40 |
|
41 | 41 |
shd_init(); |
42 | 42 |
shd_load_language('SimpleDeskAdmin'); |
... | ... |
@@ -104,6 +104,21 @@ function shd_admin_main() |
104 | 104 |
$context['template_layers'][] = 'shd_maintenance'; |
105 | 105 |
} |
106 | 106 |
} |
107 |
+ |
|
108 |
+ // Also, fix up the link tree while we're here. |
|
109 |
+ $linktree = $context['linktree']; |
|
110 |
+ $context['linktree'] = array(); |
|
111 |
+ foreach ($linktree as $linktreeitem) |
|
112 |
+ { |
|
113 |
+ $context['linktree'][] = $linktreeitem; |
|
114 |
+ if ($linktreeitem['url'] == $scripturl . '?action=admin') |
|
115 |
+ { |
|
116 |
+ $context['linktree'][] = array( |
|
117 |
+ 'url' => $scripturl . '?action=admin;area=helpdesk_info', |
|
118 |
+ 'name' => $txt['shd_helpdesk'], |
|
119 |
+ ); |
|
120 |
+ } |
|
121 |
+ } |
|
107 | 122 |
} |
108 | 123 |
|
109 | 124 |
/** |
110 | 125 |