@@ 195-199 (lines=5) @@ | ||
192 | $this->usermenu[0]['url'] = url('/core/logout'); |
|
193 | ||
194 | if (method_exists($this->kernel->user, 'getIntranetList')) { |
|
195 | if (count($this->kernel->user->getIntranetList()) > 1) { |
|
196 | $this->usermenu[1]['name'] = $this->t('change intranet', 'common'); |
|
197 | $this->usermenu[1]['url'] = url('/core/restricted/switchintranet'); |
|
198 | } |
|
199 | } |
|
200 | $this->usermenu[2]['name'] = $this->t('control panel', 'common'); |
|
201 | ; |
|
202 | $this->usermenu[2]['url'] = url('/core/restricted/module/controlpanel'); |
@@ 161-164 (lines=4) @@ | ||
158 | $this->usermenu = array(); |
|
159 | $this->usermenu[0]['name'] = $this->t('Logout'); |
|
160 | $this->usermenu[0]['url'] = $this->url('/logout'); |
|
161 | if (count($this->getKernel()->user->getIntranetList()) > 1) { |
|
162 | $this->usermenu[1]['name'] = $this->t('Switch intranet'); |
|
163 | $this->usermenu[1]['url'] = $this->url('/restricted/switchintranet'); |
|
164 | } |
|
165 | $this->usermenu[2]['name'] = $this->t('Modules'); |
|
166 | $this->usermenu[2]['url'] = $this->url('/restricted/module'); |
|
167 | $this->usermenu[3]['name'] = $this->t('Control panel'); |