Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/users/users_tag_processor.php
Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Line(s) | |||||
$login_user->Load( $user->GetID() ); | $login_user->Load( $user->GetID() ); | ||||
if ( ($login_user->GetDBField('Status') == STATUS_ACTIVE) && $user_helper->checkLoginPermission() ) { | if ( ($login_user->GetDBField('Status') == STATUS_ACTIVE) && $user_helper->checkLoginPermission() ) { | ||||
$user_helper->loginUserById( $login_user->GetID() ); | $user_helper->loginUserById( $login_user->GetID() ); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Returns user selector title | * Returns user title | ||||
* | * | ||||
* @param Array $params | * @param array $params Parameters. | ||||
* @return string | * @return string | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function UserSelectorTitle($params) | protected function UserTitle(array $params) | ||||
{ | { | ||||
$object = $this->getObject($params); | $object = $this->getObject($params); | ||||
/* @var $object kDBItem */ | /* @var $object kDBItem */ | ||||
return $object->GetDBField('Email') ? $object->GetDBField('Email') : $object->GetDBField('Username'); | return $object->GetDBField('Email') ? $object->GetDBField('Email') : $object->GetDBField('Username'); | ||||
} | } | ||||
} | } |