Просмотр исходного кода

Ticket #255 - Switcher link in Account Popup.

AntonLV 10 лет назад
Родитель
Сommit
842fa56392
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      template/scripts/BxBaseMenuAccountPopup.php

+ 3 - 2
template/scripts/BxBaseMenuAccountPopup.php

@@ -24,12 +24,13 @@ class BxBaseMenuAccountPopup extends BxTemplMenu
 
         $aVars['bx_repeat:menu_items'] = array(true);
         $aVars['profile_display_name'] = BxDolProfile::getInstance()->getDisplayName();
-        $aVars['url_switch_profile'] = BxDolPermalinks::getInstance()->permalink('page.php?i=account-profile-switcher');
         $aVars['menu_account'] = BxDolMenu::getObjectInstance('sys_account')->getCode();
         $aVars['menu_notifications'] = BxDolMenu::getObjectInstance('sys_account_notifications')->getCode();
         $aVars['bx_if:multiple_profiles_mode'] = array(
             'condition' => 1 != (int)getParam('sys_account_limit_profiles_number'),
-            'content' => array(),
+            'content' => array(
+				'url_switch_profile' => BxDolPermalinks::getInstance()->permalink('page.php?i=account-profile-switcher')
+        	),
         );
 
         $a = BxDolService::call('system', 'account_profile_switcher', array(), 'TemplServiceProfiles');