Skip to content

Commit

Permalink
#4558 - Build-in API support (fix counters)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Nov 29, 2024
1 parent 1f794c9 commit 09f9399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/classes/BxDolProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ public static function getDataForPage($mixedProfileId = false, $aParams = [])
'operator' => isAdmin(),
//'info' => $oProfile->getInfo(),
'confirmed' => $oAccount->isConfirmed(),
'counters' => bx_srv('system', 'profile_counters', [], 'TemplServiceProfiles'),
'profiles_count' => $oAccount->getProfilesNumber(true),
'hash' => encryptUserId($iId),
'profiles_limit' => (int)getParam('sys_account_limit_profiles_number'),
Expand All @@ -191,6 +190,8 @@ public static function getDataForPage($mixedProfileId = false, $aParams = [])
];

if ($iId == bx_get_logged_profile_id()){
$aRv['counters'] = bx_srv('system', 'profile_counters', [], 'TemplServiceProfiles');

$oInformer = BxDolInformer::getInstance(BxDolTemplate::getInstance());
$sRet = $oInformer ? $oInformer->display() : '';
if ($sRet){
Expand Down

0 comments on commit 09f9399

Please sign in to comment.